JAL-3130 Use non-deprecated check for Mac CMD key press
authorBen Soares <bsoares@dundee.ac.uk>
Thu, 13 Dec 2018 12:12:21 +0000 (12:12 +0000)
committerBen Soares <bsoares@dundee.ac.uk>
Thu, 13 Dec 2018 12:12:21 +0000 (12:12 +0000)
src/jalview/util/Platform.java

index 2c74609..4625055 100644 (file)
@@ -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();
   }