co-mono/packages
Ryota 5bb3700717 fix(tui): prevent Kitty protocol base layout key from causing false shortcut matches
With the Kitty keyboard protocol (flag 4), terminals report both the
logical key codepoint and the physical base layout key (PC-101 QWERTY
position). The key matching logic in matchesKittySequence matched
against both unconditionally, which caused a single keypress to match
multiple shortcuts on remapped keyboard layouts.

For example, on a Dvorak layout with xremap, pressing Ctrl+K sends
CSI 107::118;5u (codepoint=107 'k', base layout=118 'v'). The
unconditional base layout match made this also match Ctrl+V, which is
bound to pasteImage. Since CustomEditor checks app-level keybindings
(pasteImage) before editor keybindings (deleteToLineEnd), Ctrl+K was
silently intercepted by the paste image handler instead of deleting
to end of line. The same issue affects symbol keys, as Dvorak also
remaps symbols to different physical positions (e.g., '/' sits where
'[' is on QWERTY).

The fix restricts base layout key matching to cases where the codepoint
is not a recognized Latin letter (a-z) or symbol (/, -, [, ;, etc.).
When the codepoint is already a recognized key, it is authoritative and
the base layout key is ignored. This preserves non-Latin layout support
(Ctrl+К on a Russian layout still matches Ctrl+K via base layout key
107) while preventing false matches from differing physical key
positions on remapped layouts.

Both matchesKittySequence and parseKey are updated with the same logic.
2026-02-01 01:25:00 +01:00
..
agent feat: add maxDelayMs setting to cap server-requested retry delays 2026-02-01 00:50:41 +01:00
ai feat: add maxDelayMs setting to cap server-requested retry delays 2026-02-01 00:50:41 +01:00
coding-agent feat(coding-agent): threaded sort mode and compact format for /resume (#1124) 2026-02-01 01:10:58 +01:00
mom Add [Unreleased] section for next cycle 2026-01-31 01:09:12 +01:00
pods Release v0.50.7 2026-01-31 01:08:29 +01:00
tui fix(tui): prevent Kitty protocol base layout key from causing false shortcut matches 2026-02-01 01:25:00 +01:00
web-ui fix: make pre-commit hook fail on lint warnings, fix template literal warnings 2026-02-01 00:25:57 +01:00