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:
4aac664
)
JAL-2272 right mouse button on Mac is not Cmd equivalent!
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 4 Nov 2016 14:02:41 +0000
(14:02 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 4 Nov 2016 14:02:41 +0000
(14:02 +0000)
src/jalview/util/Platform.java
patch
|
blob
|
history
diff --git
a/src/jalview/util/Platform.java
b/src/jalview/util/Platform.java
index
3fb384f
..
9df2060
100644
(file)
--- a/
src/jalview/util/Platform.java
+++ b/
src/jalview/util/Platform.java
@@
-91,6
+91,13
@@
public class Platform
{
if (isAMac())
{
+ /*
+ * answer false for right mouse button
+ */
+ if (e.isPopupTrigger())
+ {
+ return false;
+ }
return (Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() & e
.getModifiers()) != 0;
// could we use e.isMetaDown() here?