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:
dcdf54b
)
JAL-3130 Use non-deprecated check for Mac CMD key press
author
Ben Soares
<bsoares@dundee.ac.uk>
Thu, 13 Dec 2018 12:12:21 +0000
(12:12 +0000)
committer
Ben Soares
<bsoares@dundee.ac.uk>
Thu, 13 Dec 2018 12:12:21 +0000
(12:12 +0000)
src/jalview/util/Platform.java
patch
|
blob
|
history
diff --git
a/src/jalview/util/Platform.java
b/src/jalview/util/Platform.java
index
2c74609
..
4625055
100644
(file)
--- a/
src/jalview/util/Platform.java
+++ b/
src/jalview/util/Platform.java
@@
-140,9
+140,8
@@
public class Platform
{
return false;
}
- return (Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()
- & e.getModifiers()) != 0;
- // could we use e.isMetaDown() here?
+ return (Toolkit.getDefaultToolkit().getMenuShortcutKeyMaskEx() // .getMenuShortcutKeyMask()
+ & e.getModifiersEx()) != 0; // getModifiers()) != 0;
}
return e.isControlDown();
}