Documentation
¶
Overview ¶
Package inputmacro classifies control tokens shared by input transports and emitters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyForToken ¶ added in v2.17.2
KeyForToken returns the key or button name a token acts on, in the braced form the key tables and config allow/block lists use. Control tokens are unwrapped so the key they act on is what gets validated — otherwise "{press:super}" would slip past a "{super}" block list entry. Delay tokens carry a duration rather than a key and report false.
Types ¶
type Control ¶
Control describes a recognized inline input macro token.
func ClassifyControl ¶
ClassifyControl recognizes braced delay, press, release, and hold tokens, including their sigil forms. Non-control tokens return ActionNone.
Click to show internal directories.
Click to hide internal directories.