An array of modifier key strings (e.g., ["cmd", "shift"]). Supported names:
The key: a name or character (e.g. "a", "space", "return", "f1"), resolved
A JavaScript function to call when the hotkey is pressed, or null for no callback
OptionalonReleased: (() => void) | nullA JavaScript function to call when the hotkey is released, or null/omitted for no callback
OptionalonRepeat: (() => void) | nullA JavaScript function to call repeatedly while the hotkey is held down, or null/omitted for no repeat
A hotkey object, or null if creation failed. Call .enable() to activate it.
Create a hotkey without enabling it
cmd/command/⌘,shift/⇧,alt/option/⌥,ctrl/control/⌃. through the current keyboard layout (seehs.keycodes.map), or a numeric virtual key code, which always means the same physical key