Browse Source

fixes missing Enter

Andreas T. Meyer-Berg 7 năm trước cách đây
mục cha
commit
75eb222a86
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/ui/view/GUI.java

+ 2 - 1
src/ui/view/GUI.java

@@ -1556,7 +1556,8 @@ public class GUI implements CategoryListener {
 					/**
 					 * set local graph Period
 					 */
-					unitGraph.setLocalPeriod(localLength);						
+					if(e.getKeyCode() == KeyEvent.VK_ENTER)
+						unitGraph.setLocalPeriod(localLength);						
 				}catch(Exception ex){
 					unitGraphLocalPeriod.setBackground(Color.RED);
 				}