JAL-2272 right mouse button on Mac is not Cmd equivalent!
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 4 Nov 2016 14:02:41 +0000 (14:02 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 4 Nov 2016 14:02:41 +0000 (14:02 +0000)
src/jalview/util/Platform.java

index 3fb384f..9df2060 100644 (file)
@@ -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?