Callback invoked when the modal is entered
Callback invoked when the modal is exited
Whether the modal is currently active
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
Called when the hotkey is released, or null
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()).