JAL-2957 don't validate input on arrow keys
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 23 Apr 2018 08:43:16 +0000 (09:43 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 23 Apr 2018 08:43:16 +0000 (09:43 +0100)
src/jalview/gui/OptsAndParamsPage.java

index 483ba3d..34af13d 100644 (file)
@@ -700,7 +700,9 @@ public class OptsAndParamsPage
             @Override
             public void keyReleased(KeyEvent e)
             {
-              if (e.isActionKey())
+              int keyCode = e.getKeyCode();
+              if (e.isActionKey() && keyCode != KeyEvent.VK_LEFT
+                      && keyCode != KeyEvent.VK_RIGHT)
               {
                 if (valueField.getText().trim().length() > 0)
                 {