ReadonlyidentifierA unique identifier for this tap
ReadonlylistenWhether this tap was created as listen-only (events are observed but never modified or suppressed)
Whether this tap has been registered with macOS
True if the tap has been created
Whether this tap is currently active
True if the tap is running
Replace the callback function
A function called for each matching event. Return false to consume (suppress) the event; return anything else to pass it through.
This tap, for chaining
An event tap watcher that intercepts input events from the system. Obtain instances via
hs.eventtap.addWatcher()— do not instantiate directly.Monitoring keyboard events