hammerspoon2-docs
    Preparing search index...

    Function systemAssigned

    • Check whether macOS itself has already claimed a key combination (e.g. for Spotlight, screenshots, etc.)

      Parameters

      • mods: string[]

        An array of modifier key strings

      • key: string | number

        A key name or character, or a numeric virtual key code

      Returns { enabled: boolean; keyCode: number; mods: number } | null

      The system's shortcut if the combination is system-assigned, otherwise null

      • { enabled: boolean; keyCode: number; mods: number }
        • enabled: boolean

          Whether the shortcut is enabled

        • keyCode: number

          The shortcut's virtual key code

        • mods: number

          The shortcut's modifier keys, as Carbon modifier flags

      • null