Called when the modal is entered
Called when the modal is exited
ReadonlyisWhether the modal is currently active
Add a hotkey that is active only while this modal is entered
Modifier keys for the hotkey
Key name for the hotkey
Called when the key is pressed, or null
Called when the key is released, or null
This modal, for chaining
Destroy the modal and all its hotkeys without calling exitFn
Activate the modal: enable its hotkeys and disable the trigger hotkey
This modal, for chaining
Deactivate the modal: disable its hotkeys and re-enable the trigger hotkey
This modal, for chaining
A group of hotkeys that are activated and deactivated together. Obtain instances via
hs.hotkey.modal.create()— do not instantiate directly.Example