- Enclosing interface:
SystemShortcuts
Information about a system shortcut
-
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable description of the shortcut action.getId()Returns unique identifier for this shortcut.charReturns the key character for this shortcut.intReturns the key code for this shortcut.intReturns the modifier mask for this shortcut.
-
Method Details
-
getKeyCode
int getKeyCode()Returns the key code for this shortcut. SeeKeyEventfor the list of key codes. If this shortcut doesn't have an associated key code, this method returnsKeyEvent.VK_UNDEFINED.- Returns:
- The shortcut's key code
-
getKeyChar
char getKeyChar()Returns the key character for this shortcut. If this shortcut doesn't have an associated key character, this method returnsKeyEvent.CHAR_UNDEFINED.- Returns:
- The shortcut's key character
-
getModifiers
int getModifiers()Returns the modifier mask for this shortcut. SeeInputEventfor the list of modifiers.- Returns:
- The shortcut's modifiers mask
-
getId
String getId()Returns unique identifier for this shortcut.- Returns:
- Unique identifier for the shortcut action
-
getDescription
String getDescription()Returns a human-readable description of the shortcut action.- Returns:
- Human-readable description of the shortcut action
-