Numpad Enter should have the same behavior as the regular Enter #4670

Open
opened 2026-02-16 17:44:58 -05:00 by yindo · 7 comments
Owner

Originally created by @rubnogueira on GitHub (Jan 10, 2026).

Originally assigned to: @kommander on GitHub.

Description

When I press the Numpad Enter, it doesn't submit the prompt.

Plugins

No response

OpenCode version

1.1.11

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

Ghostty

Originally created by @rubnogueira on GitHub (Jan 10, 2026). Originally assigned to: @kommander on GitHub. ### Description When I press the Numpad Enter, it doesn't submit the prompt. ### Plugins _No response_ ### OpenCode version 1.1.11 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System macOS 26.2 ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:44:58 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 10, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #4046: Shift-return does not input newline since 1.0 - Related to Enter key behavior changes in opentui
  • #7248: unable to insert new line in prompt box in MacOS Tahoe basic Terminal - Similar issue with Enter/Shift-Enter functionality
  • #3557: opentui: input_submit not reading keybind properly - Related to input submission keybind handling
  • #6950: [WebUI] Enter submits on IME composition confirm - Related to Enter key behavior and input submission

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 10, 2026): This issue might be a duplicate of existing issues. Please check: - #4046: Shift-return does not input newline since 1.0 - Related to Enter key behavior changes in opentui - #7248: unable to insert new line in prompt box in MacOS Tahoe basic Terminal - Similar issue with Enter/Shift-Enter functionality - #3557: opentui: `input_submit` not reading <leader> keybind properly - Related to input submission keybind handling - #6950: [WebUI] Enter submits on IME composition confirm - Related to Enter key behavior and input submission Feel free to ignore if none of these address your specific case.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 10, 2026):

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Jan 10, 2026): For keybind-related issues, please also check our pinned keybinds documentation: #4997
Author
Owner

@yashrastogi019-cell commented on GitHub (Jan 11, 2026):

@rubnogueira it is working now please check?

@yashrastogi019-cell commented on GitHub (Jan 11, 2026): @rubnogueira it is working now please check?
Author
Owner

@rubnogueira commented on GitHub (Jan 11, 2026):

Still not working with 1.1.13.

@rubnogueira commented on GitHub (Jan 11, 2026): Still not working with 1.1.13.
Author
Owner

@steefmin commented on GitHub (Jan 20, 2026):

I think this is influenced by the use of ghostty. I'm having the same behavior on Ubuntu 24.04 with ghostty terminal, but it works as expected in gnome terminal

@steefmin commented on GitHub (Jan 20, 2026): I think this is influenced by the use of ghostty. I'm having the same behavior on Ubuntu 24.04 with ghostty terminal, but it works as expected in gnome terminal
Author
Owner

@Mattwmaster58 commented on GitHub (Jan 25, 2026):

Ran into this with Ghostty as well - 1.1.28

@Mattwmaster58 commented on GitHub (Jan 25, 2026): Ran into this with Ghostty as well - 1.1.28
Author
Owner

@rhodes-b commented on GitHub (Jan 26, 2026):

https://github.com/ghostty-org/ghostty/discussions/10451#discussioncomment-15602276

opentui supports kitty keyboard protocol under kkp enter and numpad enter are not the same key like they are in traditional reporting

this is a opencode problem they need to recognize it as the same action as enter

https://github.com/anomalyco/opencode/pull/9242
there is also this PR which attempts to allow kkp to be user configurable

@rhodes-b commented on GitHub (Jan 26, 2026): https://github.com/ghostty-org/ghostty/discussions/10451#discussioncomment-15602276 opentui supports kitty keyboard protocol under kkp enter and numpad enter are not the same key like they are in traditional reporting this is a opencode problem they need to recognize it as the same action as enter https://github.com/anomalyco/opencode/pull/9242 there is also this PR which attempts to allow kkp to be user configurable
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4670