< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/basic/BasicGraphicsUtils.java
Print this page
@@ -380,14 +380,13 @@
*/
static boolean isLeftToRight( Component c ) {
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 >