hammerspoon2-docs
    Preparing search index...

    Function bindSpec

    • Bind a hotkey from a single options object. Like hs.hotkey.bind()/create(), but also accepts a message and a repeat callback. message is available on any hotkey (not just ones created via bindSpec()) by setting .message directly on the returned object; see hs.hotkey's message property for exactly when it is shown.

      Parameters

      • spec: any

        An object with the following fields:

      Returns any

      A hotkey object, or null if binding failed