Querying system shortcuts
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Listener for shortcut change events.static interface
Information about a system shortcut -
Method Summary
Modifier and TypeMethodDescriptionQuery the current state of system shortcuts.void
Set 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
null
if 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
-