Skip to content

[FEATURE]: Support modifying newline and submit keybinds in TUI/GUI #11898

Closed as not planned

Description

@gitsang

Question

Is there any way to use enter to send newline(\n), and ctrl+enter to send message.

Relate Issue

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Feb 3, 2026
  2. github-actions commented on Feb 3, 2026

    @github-actions
    Contributor

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

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

  3. jorgedanisc commented on Feb 14, 2026

    @jorgedanisc
    Image

    This would be really interesting to me as well on the Desktop App! Claude Code handles this nicely (uploaded a screenshot from their Settings on VSCode)

    It could be as simple as adding that checkbox I uploaded above - or just two new shortcuts on the settings (line break and input submit)

  4. philipmat commented on Feb 23, 2026

    @philipmat

    The Codex desktop app does it the same way and it's particularly nice when writing multi-line prompts (which for me is most of the time).

    Image
  5. TomServo138 commented on Mar 18, 2026

    @TomServo138

    Surprising bug to let thru, for such an otherwise prominent program. Obviously should have been fixed immedately ... last month.

    That said, came here to let others know that one workaround, in the meantime, is use Ghosttly and add this to config:

    # Swap Enter and Ctrl+Enter for OpenCode
    keybind = enter=text:\n
    keybind = ctrl+enter=text:\r
    
  6. Molunerfinn commented on Mar 22, 2026

    @Molunerfinn

    +1 need this feature too

  7. 49 remaining items

  8. serhumanos commented on Oct 4, 2026

    @serhumanos

    This will be very useful; in most cases, I hit Enter to add a new line.

  9. IgorWRD commented on Oct 20, 2026

    @IgorWRD

    +1 - confirming this is still an issue in the desktop app on Windows (v2.1.0).

    Desired behavior: Enter inserts a newline, Ctrl+Enter submits the message.
    Current behavior: Enter always submits, and the documented input.submit / input.newline overrides in cli.json are ignored by the desktop composer.

    An app-level option (like the "Enter sends message" checkbox in other AI chat clients) would solve this for desktop and web clients - multi-line prompts are quite common, and the current behavior causes accidental sends.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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