git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c725e57
)
JAL-2957 don't validate input on arrow keys
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Mon, 23 Apr 2018 08:43:16 +0000
(09:43 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Mon, 23 Apr 2018 08:48:01 +0000
(09:48 +0100)
src/jalview/gui/OptsAndParamsPage.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/OptsAndParamsPage.java
b/src/jalview/gui/OptsAndParamsPage.java
index
483ba3d
..
34af13d
100644
(file)
--- 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)
{