Modifying keybinds.input_newline has no effect #3511

Closed
opened 2026-02-16 17:40:25 -05:00 by yindo · 4 comments
Owner

Originally created by @JosXa on GitHub (Dec 12, 2025).

Originally assigned to: @kommander on GitHub.

Description

Putting anything into

  "keybinds": {
    "input_newline": "..."
  },

doesn't appear to do anything. The only working keybinds for me remain Ctrl+J and Ctrl+Enter no matter what I try.

What I would like is Ctrl+Shift instead, if possible. Is it?

OpenCode version

1.0.150

Steps to reproduce

  1. Be on Windows Terminal
  2. Set
  "keybinds": {
    "input_newline": "Shift+Enter"
  },
  1. Observe: Only Ctrl+J and Ctrl+Enter work.

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @JosXa on GitHub (Dec 12, 2025). Originally assigned to: @kommander on GitHub. ### Description Putting anything into ```json "keybinds": { "input_newline": "..." }, ``` doesn't appear to do anything. The only working keybinds for me remain <kbd>Ctrl+J</kbd> and <kbd>Ctrl+Enter</kbd> no matter what I try. What I would like is <kbd>Ctrl+Shift</kbd> instead, if possible. Is it? ### OpenCode version 1.0.150 ### Steps to reproduce 1. Be on Windows Terminal 2. Set ```json "keybinds": { "input_newline": "Shift+Enter" }, ``` 3. Observe: Only Ctrl+J and Ctrl+Enter work. ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the opentuibug labels 2026-02-16 17:40:25 -05:00
yindo closed this issue 2026-02-16 17:40:25 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 12, 2025):

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

  • #4997: Keybinds (pinned issue tracking keybind problems including input_newline, multiline input, and custom keybind remapping not working)
  • #4046: Shift-return does not input newline since 1.0
  • #4189: Line breaks do not work any more in the latest version
  • #1505: shift+enter keybinding not working
  • #3675: Keybind doesn't work in 1.0.7
  • #4860: Cannot Load or Override Config File on macOS (also mentions input_newline set to 'none' being ignored)

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

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

@github-actions[bot] commented on GitHub (Dec 12, 2025): This issue might be a duplicate of existing issues. Please check: - #4997: Keybinds (pinned issue tracking keybind problems including input_newline, multiline input, and custom keybind remapping not working) - #4046: Shift-return does not input newline since 1.0 - #4189: Line breaks do not work any more in the latest version - #1505: shift+enter keybinding not working - #3675: Keybind doesn't work in 1.0.7 - #4860: Cannot Load or Override Config File on macOS (also mentions input_newline set to 'none' being ignored) For keybind-related issues, please also check our pinned keybinds documentation: #4997 Feel free to ignore if none of these address your specific case.
Author
Owner

@JosXa commented on GitHub (Dec 15, 2025):

Duplicate, I suppose

@JosXa commented on GitHub (Dec 15, 2025): Duplicate, I suppose
Author
Owner

@kommander commented on GitHub (Dec 15, 2025):

Yes, we'll provide some scripts to tweak terminal settings across platforms and use some windows console scripting to improve, but out of the box there is currently not much I can do here I am afraid.

@kommander commented on GitHub (Dec 15, 2025): Yes, we'll provide some scripts to tweak terminal settings across platforms and use some windows console scripting to improve, but out of the box there is currently not much I can do here I am afraid.
Author
Owner

@doodhout commented on GitHub (Dec 18, 2025):

Slightly highjacking this issue report to notify (KDE Plasma) Konsole users suffering from the same symptom: Shift+Enter not working in OpenCode.

I found that this is because of the way Konsole is configured by default. Users of Claude Code have raised this very issue on the Claude Code issue tracker: https://github.com/anthropics/claude-code/issues/2115

TL;DR: Default key bindings for Konsole is based on Xfree 4 which binds Return+Shift to \EOM instead of to \n. When you manually modify this value in the key binding profile, then Shift+Enter does work both for Claude Code and OpenCode. Yay!

@doodhout commented on GitHub (Dec 18, 2025): Slightly highjacking this issue report to notify (KDE Plasma) Konsole users suffering from the same symptom: Shift+Enter not working in OpenCode. I found that this is because of the way Konsole is configured by default. Users of Claude Code have raised this very issue on the Claude Code issue tracker: https://github.com/anthropics/claude-code/issues/2115 TL;DR: Default key bindings for Konsole is based on Xfree 4 which binds `Return+Shift` to `\EOM` instead of to `\n`. When you manually modify this value in the key binding profile, then Shift+Enter does work both for Claude Code _and_ OpenCode. Yay!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3511