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=04a92acb1e484730552d42fdf2d356e04551c5ea;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) {