hammerspoon2-docs
    Preparing search index...

    Function makeKeyEvent

    • Create a keyboard event through the current keyboard layout (see hs.keycodes.map), or a numeric virtual key code

      Parameters

      • key: string | number

        A key name or character (e.g. "a", "space", "return", "f1"), resolved

      • isDown: boolean

        true for key down, false for key up

      Returns HSEventTapEvent | null

      An HSEventTapEvent, or null if the key name is unknown