4ef7a02f
keyboard: guard g-leader and j/k against palette and editable targets
Add an early return after the ⌘K and Esc handlers so the g-prefix
dispatch, g-start, j/k cursor, and Enter activation skip when the
palette is open or the focused element is an input/textarea/contenteditable.
Without it, typing "gh" into the palette search input fires go("home")
mid-query, navigating away while the palette stays open.
Two regression tests added: g+h with palette open → no navigation; g
on a focused input → no pending state, follow-up h does nothing.
Eugene Blikh <bigbes@gmail.com> — 2026-04-26 04:38:23 UTC
Commit 4ef7a02ff17af9542424106860b8ab98b62dae94 —
view raw patch
Parent(s):
136ae1f4
| File | Status | + | − |
|---|---|---|---|
web/src/lib/keyboard.test.ts
|
M | +22 | |
web/src/lib/keyboard.ts
|
M | +15 | -7 |