Skip to content

core: compact keypress debug output and add IME repro - #941

Merged
simonklee merged 1 commit into
mainfrom
keyboard-ctrl-x
Apr 12, 2026
Merged

simonklee merged 1 commit into
mainfrom
keyboard-ctrl-x

Conversation

@simonklee

Copy link
Copy Markdown
Member

Rework the keypress debug demo around parsed events instead of large per-event cards. Keep the main feed dense, move raw input into session detail and export output, and show the latest event with useful fields such as source, code, and Kitty baseCode.

Add test that reproduces Ctrl+C when Kitty reports an alternate base layout for a non-Latin IME. For anomalyco/opencode#21163

kommander
kommander previously approved these changes Apr 12, 2026
Kitty can report the typed character and the base-layout key at the
same time. Match bindings against that base layout so Ctrl shortcuts
keep working under non-Latin IMEs and alternate keyboard layouts.

Also decode raw 0x1c..0x1f bytes as Ctrl+\, Ctrl+], Ctrl+^, and
Ctrl+_ so tmux-style control input reaches the same shortcut path.

Rework the keypress debug demo around parsed events instead of large
per-event cards. Keep the main feed dense, move raw input into session
detail and export output, and show the latest event with useful fields
such as source, code, and Kitty baseCode.

Add test that reproduces Ctrl+C when Kitty reports an alternate base layout
for a non-Latin IME. For anomalyco/opencode#21163
@simonklee

Copy link
Copy Markdown
Member Author

I'll add a followup in opencode that adds a few of these:

if (keybind.match("ctrl+c", evt)) {

instead of just matching on evt.name which may be a different codepoint

@simonklee
simonklee merged commit 0b82a06 into main Apr 12, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants