Module key_lock
Expand description
Key Lock (hold the next key until pressed again). Key Lock: hold the next key until it is pressed again.
After arming with Key::KeyLock, the next resolved keyboard key output is
kept held via a virtual key press. Pressing a key that produces the same
output again releases the lock.
Only one output is locked at a time (QMK-style). Arming again and locking a different key replaces the previous lock. Simultaneous multi-lock can be added later if needed.
Structs§
- Context
- Key Lock context: watching arm and at most one active virtual lock.
- KeyState
- Key state used by System. (No per-key state; behaviour is on Context.)
- Pending
KeyState - Pending key state type for key lock keys. (No pending state.)
- Ref
- Reference for a key lock key.
- System
- The key::System implementation for key lock keys.
Enums§
Functions§
- is_
lockable - Whether a resolved key::KeyOutput can be locked.