FA-31405 / Keyboard interactions / Member archive
Keyboard default edit cancellation pipeline: A named editing key is inserted as text or printable input disappears · case 05
The event trace violates the insertion kind rule and produces incorrect keyboard state or command output.
Case contract
Case [text,lo,hi,key,prevent_down,prevent_before,cancelable,readonly]. Selection is a valid half-open code-point interval. Printable single characters replace selection, Backspace deletes previous point and Delete deletes next point for collapsed selections. Other keys do not edit. A cancelable prevented keydown stops editing; readonly suppresses beforeinput. A changed candidate fires beforeinput, cancellation suppresses mutation; successful edit fires input. Always log keydown and keyup. Return text, selection endpoints and event log. 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 |
|---|---|---|---|
| key-default-edit scenario 3 | [["aBackspaced", 10, 10, ["keydown", "beforeinput", "input", "keyup"]], ["aBackspaced", 10, 10, ["keydown", "beforeinput", "input", "keyup"]], ["aBackspaced", 10, 10, ["keydown", "beforeinput", "input", "keyup"]], ["aBackspaced", 10, 10, ["keydown", "beforeinput", "input", "keyup"]], ["aBackspaced", 10, 10, ["keydown", "beforeinput", "input", "keyup"]]] | [["ad", 1, 1, ["keydown", "beforeinput", "input", "keyup"]], ["ad", 1, 1, ["keydown", "beforeinput", "input", "keyup"]], ["ad", 1, 1, ["keydown", "beforeinput", "input", "keyup"]], ["ad", 1, 1, ["keydown", "beforeinput", "input", "keyup"]], ["ad", 1, 1, ["keydown", "beforeinput", "input", "keyup"]]] | 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 ↗