From 25ea3f15d895b12ff0426307c0a3c90d1e34b068 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 27 Apr 2014 23:12:56 +0100 Subject: [PATCH] JAL-1322 only update slider when return is pressed --- src/jalview/gui/OptsAndParamsPage.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); + } } } -- 1.7.10.2