JAL-1322 only update slider when return is pressed
authorJim Procter <jprocter@dundee.ac.uk>
Sun, 27 Apr 2014 22:12:56 +0000 (23:12 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Sun, 27 Apr 2014 22:12:56 +0000 (23:12 +0100)
src/jalview/gui/OptsAndParamsPage.java

index 3bc99dd..411aba3 100644 (file)
@@ -594,9 +594,12 @@ public class OptsAndParamsPage
             @Override
             public void keyReleased(KeyEvent e)
             {
-              if (valueField.getText().trim().length() > 0)
+              if (e.isActionKey())
               {
-                actionPerformed(null);
+                if (valueField.getText().trim().length() > 0)
+                {
+                  actionPerformed(null);
+                }
               }
             }