< prev index next >

## src/java.desktop/share/classes/javax/swing/plaf/basic/BasicMenuUI.java

Print this page

    @@ -127,11 +127,12 @@
         void updateMnemonicBinding() {
             int mnemonic = menuItem.getModel().getMnemonic();
             int[] shortcutKeys = (int[])DefaultLookup.get(menuItem, this,
                                                        "Menu.shortcutKeys");
             if (shortcutKeys == null) {
    -            shortcutKeys = new int[] {KeyEvent.ALT_MASK};
    +            shortcutKeys = new int[] {KeyEvent.ALT_MASK,
    +                    KeyEvent.ALT_MASK | KeyEvent.ALT_GRAPH_MASK};
             }
             if (mnemonic == lastMnemonic) {
                 return;
             }
             InputMap windowInputMap = SwingUtilities.getUIInputMap(

< prev index next >