
Hammerspoon press key password#
Secure input is enabled generally only in situations where an password field is focused in a web browser, system dialog or terminalĮxtensions/eventtap/libeventtap.m line 330.If secure input is enabled, Hammerspoon is not able to intercept keyboard events.A boolean, true if secure input is enabled, otherwise false.Hs.eventtap.isSecureInputEnabled() -> booleanĬhecks if macOS is preventing keyboard events from being sent to event taps A number containing the maximum number of seconds between two mouse click events, for a double click event to be registeredĮxtensions/eventtap/libeventtap.m line 422.Returns the system-wide setting for the delay between two clicks, to register a double click event

Hs.eventtap.doubleClickInterval() -> number This is useful primarily in conjuction with other modules, such as hs.menubar, when a callback is already in progress or waiting for an event callback is not practical or possible.Įxtensions/eventtap/libeventtap.m line 353 This is an instantaneous poll of the current mouse buttons, not a callback.Special hash tag synonyms for left (button 1), right (button 2), and middle (button 3) are also set to true if these buttons are currently being pressed.Returns an array containing indicies starting from 1 up to the highest numbered button currently being pressed where the index is true if the button is currently pressed or false if it is not.Returns a table containing the current mouse buttons being pressed *at this instant*. the numeric value returned is useful if you need to detect device dependent flags or flags which we normally ignore because they are not present (or are accessible another way) on most keyboards.Įxtensions/eventtap/libeventtap.m line 276.This is useful primarily in conjuction with other modules, such as hs.menubar, when a callback is already in progress or waiting for an event callback is not practical or possible. This is an instantaneous poll of the current keyboard modifiers for the most recently used keyboard, not a callback.* _raw - a numeric representation of the numeric representation of all of the keyboard/modifier flags.

Hammerspoon press key code#
This module is based primarily on code from the previous incarnation of Mjolnir by Steven Degutis.

If you need to construct finely controlled mouse/keyboard events, see hs.eventtap.event It also provides convenience wrappers for sending mouse and keyboard events. Tap into input events (mouse, keyboard, trackpad) for observation and possibly overriding them Hammerspoon docs: hs.eventtap docs » hs.eventtap
