Querying system shortcuts
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceListener for shortcut change events.static interfaceInformation about a system shortcut -
Method Summary
Modifier and TypeMethodDescriptionQuery the current state of system shortcuts.voidSet an event listener which is called whenever the user changes a system shortcut.
-
Method Details
-
querySystemShortcuts
SystemShortcuts.Shortcut[] querySystemShortcuts()Query the current state of system shortcuts.- Returns:
- The list of enabled system shortcuts, or
nullif the current toolkit does not support querying the state of system shortcuts.
-
setChangeListener
Set an event listener which is called whenever the user changes a system shortcut. The listener will be called on the EDT. If the application is running with headless or custom toolkit, this may be a no-op.- Parameters:
listener- The listener
-