

Hs.eventtap.keyRepeatInterval() -> number A number containing the number of seconds before repeat events begin, after a key is held downĮxtensions/eventtap/libeventtap.m line 408.Returns the system-wide setting for the delay before keyboard repeat events begin
#Hammerspoon remap key password

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 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. Returns a table containing boolean values indicating which keyboard modifiers were held down when the function was invoked The possible keys are:.raw - an optional boolean value which, if true, includes the _raw key containing the numeric representation of all of the keyboard/modifier flags.Returns a table containing the current key modifiers being pressed or in effect *at this instant* for the keyboard most recently used. Hs.eventtap.checkKeyboardModifiers() -> table Methods - API calls which can only be made on an object returned by a constructorĪPI Documentation Functions checkKeyboardModifiers Signature.Constructors - API calls which return an object, typically one that offers API methods.Functions - API calls offered directly by the extension.
#Hammerspoon remap 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
