FA-31092 / Keyboard interactions / Member archive
Tap versus hold command arbitration: Repeated downs restart a hold duration or prevent first press arming · case 02
The event trace violates the press origin rule and produces incorrect keyboard state or command output.
Case contract
Case [threshold,events]. Events [kind,key,time]. Down arms an unarmed key. Tick emits hold once when age >= threshold. Up before threshold emits tap, at or after threshold emits hold if not yet emitted. Cancel removes just one key silently. Return output and pending [key,start,held] entries. Inputs are finite ordered event traces; return the stated deterministic state. Batch entries are independent. N varies the number of independent input transactions.
Why this case matters
Controlled keyboard event processing model for debugging application event logic.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| hold-threshold scenario 5 | [[[], [["A", 13, false]]], [[], [["A", 13, false]]]] | [[[["hold", "A"]], [["A", 10, true]]], [[["hold", "A"]], [["A", 10, true]]]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗