The hotkey to bind
Key name or character (e.g. "h"), or a numeric key code
Optionalmessage?: stringA description shown as a toast when the hotkey fires
Modifier keys (e.g. ["cmd", "shift"])
Optionalpressed?: (() => void) | nullCalled when the hotkey is pressed
Optionalreleased?: (() => void) | nullCalled when the hotkey is released
Optionalrepeat?: (() => void) | nullCalled repeatedly while the hotkey is held down
A hotkey object, or null if binding failed
Bind a hotkey from a single options object. Like hs.hotkey.bind()/create(), but also accepts a
messageand arepeatcallback.messageis available on any hotkey (not just ones created via bindSpec()) by setting.messagedirectly on the returned object; see hs.hotkey's message property for exactly when it is shown.