< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicGraphicsUtils.java

Print this page

        

@@ -382,12 +382,12 @@
         return c.getComponentOrientation().isLeftToRight();
     }
 
     @SuppressWarnings("deprecation")
     static boolean isMenuShortcutKeyDown(InputEvent event) {
-        return (event.getModifiers() &
-                Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()) != 0;
+        return (event.getModifiersEx() &
+                Toolkit.getDefaultToolkit().getMenuShortcutKeyMaskEx()) != 0;
     }
 
     /**
      * Draws the given string at the specified location using text properties
      * and anti-aliasing hints from the provided component.
< prev index next >