Skip to content

Numpad Enter key does not send messages in TUI #17457

Description

@NaderIkladious

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions