Skip to content

DL-250

The leader runtime is pending-leader closure state INSIDE the one installKeymap keydown handler (never a second listener, honoring DL-223): guard-FIRST ordering (a modifier-less key on an editable/interactive target types, never arms — the guard moves ahead of the matching.length===0 early return at dispatch.ts:115), arm on a leader-set hit (!event.repeat) with a LEADER_TIMEOUT_MS disarm timeout, completion resolves the two-segment chord through the UNCHANGED three tiers (DL-222), dead sequences fall through RE-ENTERING arming (a re-pressed leader re-arms), Escape disarms, Mod-chords disarm-and-run, the uninstaller clears the timer. A separate leader-mode dispatcher was rejected (duplicate guard + tier logic).

Status: Active (Matt, 2026-08-23)

Record: ../../ui/compass-leader-chords/design.md#a3–the-leader-runtime-pending-state-inside-the-one-keydown-handler