The shortcuts are read from Shortcuts Events, so Hammerspoon needs the Automation
permission for it; macOS asks the first time. An empty array means there are no
shortcuts: when they can't be read (the permission is denied, or nobody answers its
prompt within 2 minutes), list() throws instead.
Returns an array of all available shortcuts.
The shortcuts are read from Shortcuts Events, so Hammerspoon needs the Automation permission for it; macOS asks the first time. An empty array means there are no shortcuts: when they can't be read (the permission is denied, or nobody answers its prompt within 2 minutes),
list()throws instead.