< prev index next >

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

Print this page

    *** 127,137 ****
          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};
              }
              if (mnemonic == lastMnemonic) {
                  return;
              }
              InputMap windowInputMap = SwingUtilities.getUIInputMap(
    --- 127,138 ----
          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,
    !                     KeyEvent.ALT_MASK | KeyEvent.ALT_GRAPH_MASK};
              }
              if (mnemonic == lastMnemonic) {
                  return;
              }
              InputMap windowInputMap = SwingUtilities.getUIInputMap(

< prev index next >