hammerspoon2-docs
    Preparing search index...

    Function createModal

    • Create a new modal hotkey group, optionally entered via a trigger key combination

      Parameters

      • mods: string[]

        Modifier keys for the trigger hotkey (e.g. ["cmd", "shift"]), or an empty array for no trigger

      • key: string

        Key name for the trigger hotkey (e.g. "h"), or an empty string for no trigger

      Returns HSHotkeyModal

      A new modal object. If a non-empty key is given but cannot be resolved, a warning is logged and the modal is returned without a trigger.