浏览代码

fixes missing Enter

Andreas T. Meyer-Berg 7 年之前
父节点
当前提交
75eb222a86
共有 1 个文件被更改,包括 2 次插入1 次删除
  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);
 				}