Package io.jmix.ui.component
Class ShortcutAction
java.lang.Object
io.jmix.ui.component.ShortcutAction
The ShortcutAction is triggered when the user presses a given key combination.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Consumer<ShortcutTriggeredEvent>
protected final KeyCombination
-
Constructor Summary
ConstructorDescriptionShortcutAction
(KeyCombination shortcut, Consumer<ShortcutTriggeredEvent> handler) ShortcutAction
(String shortcut, Consumer<ShortcutTriggeredEvent> handler) -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
shortcut
-
handler
-
-
Constructor Details
-
ShortcutAction
-
ShortcutAction
-
-
Method Details
-
getShortcutCombination
- Returns:
- the key combination that the shortcut reacts to
-
getHandler
- Returns:
- the handler invoked when the shortcut is triggered
-