hs.hotkey.alertDuration
message
parameter is triggered, in seconds. Default is 1.hs.hotkey.assignable(mods, key) -> boolean
hs.hotkey.deleteAll(mods, key)
hs.hotkey.disableAll(mods, key)
hs.hotkey.getHotkeys() -> table
hs.hotkey.showHotkeys(mods, key) -> hs.hotkey object
hs.hotkey
objecths.hotkey.systemAssigned(mods, key) -> table | false
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Examine whether a potential hotkey is in use by the macOS system such as the Screen Capture, Universal Access, and Keyboard Navigation keys. | | Parameters |false
hs.hotkey.bind(mods, key, [message,] pressedfn, releasedfn, repeatfn) -> hs.hotkey object
hs.alert()
when the hotkey has been triggered; if omitted, no alert will be shownhs.hotkey
object or nil if the hotkey could not be enabledhs.hotkey.new(...):enable()
hs.hotkey
objects for the same keyboard combination, but only one can be active at any given time - see hs.hotkey:enable()
message
is the empty string ""
, the alert will just show the triggered keyboard combinationmessage
parameter; a nil
in 3rd position will be interpreted as a missing pressedfn
pressedfn
, releasedfn
or repeatfn
; to delete a hotkey, use hs.hotkey:delete()
hs.hotkey.bindSpec(keyspec, ...) -> hs.hotkey object
hs.hotkey.bind()
hs.hotkey.bind()
hs.hotkey.bind()
hs.hotkey
object for method chaininghs.hotkey.bind(keyspec[1], keyspec[2], ...)
hs.hotkey.new(mods, key, [message,] pressedfn, releasedfn, repeatfn) -> hs.hotkey object
hs.alert()
when the hotkey has been triggered; if omitted, no alert will be shownhs.hotkey
object or nil if the hotkey could not be enabledhs.hotkey
objects for the same keyboard combination, but only one can be active at any given time - see hs.hotkey:enable()
message
is the empty string ""
, the alert will just show the triggered keyboard combinationmessage
parameter; a nil
in 3rd position will be interpreted as a missing pressedfn
pressedfn
, releasedfn
or repeatfn
; to delete a hotkey, use hs.hotkey:delete()
hs.hotkey:delete()
hs.hotkey:disable() -> hs.hotkey object
hs.hotkey
object for method chaininghs.hotkey:enable() -> hs.hotkey object | nil
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Method | | Description | Enables a hotkey object | | Parameters |hs.hotkey
object for method chaining or nil if the hotkey could not be enabled for some reason.