hammerspoon2-docs
    Preparing search index...

    Class HSEventTapHotkey

    A keyboard shortcut binding backed by an event tap. Supports fn modifier and left/right modifier key distinction. Obtain instances via hs.eventtap.bindHotkey() — do not instantiate directly.

    Index

    Constructors

    Properties

    callbackPressed: (() => void) | null

    The callback function to be called when the hotkey is pressed, or null to remove it

    callbackReleased: (() => void) | null

    The callback function to be called when the hotkey is released, or null to remove it

    Methods

    • Disable the hotkey

      Returns void

    • Enable the hotkey

      Returns boolean

      True if the hotkey was enabled, otherwise False

    • Check if the hotkey is currently enabled

      Returns boolean

      True if the hotkey is enabled, otherwise False