Looking Inside a Keystroke
One event can involve several physical keys. Choose whether you want to test the trigger, its member keys, or the role a key plays in that event.
Event triggers and held keys
Section titled “Event triggers and held keys”On T-34, triggers with events:press and kind:chord to find that event type:
uni.triggers(events:press, kind:chord)That query selects any combo press. To inspect the member keys rather than whether they form one chord, use keys.
On Neon, one Right Shift hold can serve both letters in “NC”.
Types NC
Acquiring and releasing Shift are events with no written output. Sustain is the held key’s role during another event, not an extra action. Select events carrying a held key with events:sustain, filtered to the right pinky with RP:
uni.keys(events:sustain, finger:RP)A combo can occur at any position in a triple. In a map, first.keys(events:press) selects local event keys pressed in the first event. To keep triples where any event is a combo press, test each event with any:
tri.any(triggers(events:press, kind:chord))See predicates and event roles for roles and window tests.