- 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.char
Returns the key character for this shortcut.int
Returns the key code for this shortcut.int
Returns the modifier mask for this shortcut.
-
Method Details
-
getKeyCode
int getKeyCode()Returns the key code for this shortcut. SeeKeyEvent
for 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. SeeInputEvent
for 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
-