Zum Inhalt springen

Looking Inside a Keystroke

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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.

On T-34, produces “?” as one combo event. Use 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”.

Acquire Right Shift, press N and C while holding it, then release Right Shift
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.