Toolkit.getMenuShortcutKeyMask

Toolkit.getMenuShortcutKeyMask

Class Overview | Class Members | This Package | All Packages

Syntax
public int getMenuShortcutKeyMask()
Returns
the modifier mask on the Event class that is used for menu shortcuts on this toolkit.
Description
Determines which modifier key is the appropriate accelerator key for menu shortcuts.

Menu shortcuts, which are embodied in the MenuShortcut class, are handled by the MenuBar class.

By default, this method returns Event.CTRL_MASK. Toolkit implementations should override this method if the Control key isn't the correct key for accelerators.

See Also
MenuBar, MenuShortcut