Description
Pressing the numpad Enter key in the OpenCode TUI does not submit messages or confirm dialogs. Only the main keyboard Enter key works.
Why this happens
Terminals using the Kitty keyboard protocol report numpad Enter as kpenter (codepoint 57414), which is a different key name from return (the main Enter key). The TUI currently only checks for evt.name === "return" in all keyboard handlers and textarea keybindings, so kpenter is never matched.
Expected behavior
Both the main Enter key and the numpad Enter key should submit messages, confirm dialogs, and select options identically.
Suggested fix
Add kpenter alongside return in all keyboard event checks and textarea keybindings throughout the TUI.
Description
Pressing the numpad Enter key in the OpenCode TUI does not submit messages or confirm dialogs. Only the main keyboard Enter key works.
Why this happens
Terminals using the Kitty keyboard protocol report numpad Enter as
kpenter(codepoint 57414), which is a different key name fromreturn(the main Enter key). The TUI currently only checks forevt.name === "return"in all keyboard handlers and textarea keybindings, sokpenteris never matched.Expected behavior
Both the main Enter key and the numpad Enter key should submit messages, confirm dialogs, and select options identically.
Suggested fix
Add
kpenteralongsidereturnin all keyboard event checks and textarea keybindings throughout the TUI.