Explorar el Código

fixes missing Enter

Andreas T. Meyer-Berg hace 7 años
padre
commit
75eb222a86
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);
 				}