From: Ben Soares Date: Thu, 13 Dec 2018 12:12:21 +0000 (+0000) Subject: JAL-3130 Use non-deprecated check for Mac CMD key press X-Git-Tag: Release_2_11_0~17^2~7^2~58^2~8 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=65b3002214c10eaf8722c20edfd47cca9b767961;p=jalview.git JAL-3130 Use non-deprecated check for Mac CMD key press --- diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index 2c74609..4625055 100644 --- 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(); }