Whether the modal is currently active
Callback invoked when the modal is entered
Callback invoked when the modal is exited
Bind a hotkey to this modal. The hotkey is only enabled while the modal is active.
Modifier keys for the hotkey (e.g. ["cmd", "shift"])
Key name for the hotkey (e.g. "h")
Called when the hotkey is pressed, or null
OptionalonReleased: Function | nullCalled when the hotkey is released, or null/omitted
OptionalonRepeat: Function | nullCalled repeatedly while the hotkey is held down, or null/omitted
This modal, for chaining
Destroy the modal, along with its trigger and all hotkeys bound to it.
Enter the modal: its trigger (if any) is disabled and its bound hotkeys are enabled.
This modal, for chaining
Exit the modal: its bound hotkeys are disabled and its trigger (if any) is re-enabled.
This modal, for chaining
A modal hotkey group returned by hs.hotkey.createModal(). Hotkeys bound to the modal via bind() are only enabled while the modal is active (i.e. between enter() and exit()).