< prev index next >

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

Print this page

    @@ -154,12 +154,21 @@
                                    JComponent.WHEN_IN_FOCUSED_WINDOW, map);
                 }
                 map.clear();
                 map.put(KeyStroke.getKeyStroke(m, BasicLookAndFeel.getFocusAcceleratorKeyMask(), false),
                         "pressed");
    +            map.put(KeyStroke.getKeyStroke(m,
    +                    BasicLookAndFeel.getFocusAcceleratorKeyMask() |
    +                            InputEvent.ALT_GRAPH_DOWN_MASK,false),
    +                    "pressed");
    +
                 map.put(KeyStroke.getKeyStroke(m, BasicLookAndFeel.getFocusAcceleratorKeyMask(), true),
                         "released");
    +            map.put(KeyStroke.getKeyStroke(m,
    +                    BasicLookAndFeel.getFocusAcceleratorKeyMask() |
    +                            InputEvent.ALT_GRAPH_DOWN_MASK, true),
    +                    "released");
                 map.put(KeyStroke.getKeyStroke(m, 0, true), "released");
             }
             else {
                 InputMap map = SwingUtilities.getUIInputMap(b, JComponent.
                                                  WHEN_IN_FOCUSED_WINDOW);

< prev index next >