MenuShortcut.MenuShortcut

MenuShortcut.MenuShortcut

Class Overview | Class Members | This Package | All Packages

Syntax 1
public MenuShortcut( int key )
Parameters
key
the raw keycode for this MenuShortcut, as would be returned in the keyCode field of a KeyEvent if this key were pressed.
Description
Constructs a new MenuShortcut for the specified key.



Syntax 2
public MenuShortcut( int key, boolean useShiftModifier )
Parameters
key
the raw keycode for this MenuShortcut, as would be returned in the keyCode field of a KeyEvent if this key were pressed.
useShiftModifier
indicates whether this MenuShortcut is invoked with the SHIFT key down.
Description
Constructs a new MenuShortcut for the specified key.