From: gmungoc Date: Mon, 23 Apr 2018 08:43:16 +0000 (+0100) Subject: JAL-2957 don't validate input on arrow keys X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e9da03a8d66e445d9f154f607600a84bf82c7fea;p=jalview.git JAL-2957 don't validate input on arrow keys --- diff --git a/src/jalview/gui/OptsAndParamsPage.java b/src/jalview/gui/OptsAndParamsPage.java index 483ba3d..34af13d 100644 --- a/src/jalview/gui/OptsAndParamsPage.java +++ b/src/jalview/gui/OptsAndParamsPage.java @@ -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) {