From: Jim Procter Date: Sun, 27 Apr 2014 22:12:56 +0000 (+0100) Subject: JAL-1322 only update slider when return is pressed X-Git-Tag: Jalview_2_9~192^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=25ea3f15d895b12ff0426307c0a3c90d1e34b068;p=jalview.git JAL-1322 only update slider when return is pressed --- diff --git a/src/jalview/gui/OptsAndParamsPage.java b/src/jalview/gui/OptsAndParamsPage.java index 3bc99dd..411aba3 100644 --- a/src/jalview/gui/OptsAndParamsPage.java +++ b/src/jalview/gui/OptsAndParamsPage.java @@ -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); + } } }