Skip to content

[BUG]: Shift+Return keybind shortcut isn't working to open a new line #16043

@koushikxd

Description

@koushikxd

Description

Issue: Shift + Return (and other newline shortcuts) not working in OpenCode on macOS

Environment

  • macOS
  • Ghostty + tmux
  • Recently switched from Cursor to OpenCode

Description

I usually press Shift + Return to insert a new line in chat inputs. In OpenCode, this does not work.

The keybind documentation shows:

"input_newline": "shift+return,ctrl+return,alt+return,ctrl+j"

However, none of these shortcuts work except for Ctrl + J.

When I press Shift + Return, Ctrl + Return, or Alt + Return, the message is sent immediately instead of inserting a new line.

Shift + Return works as expected in Claude Code and Cursor for me. This issue only occurs in OpenCode.

Plugins

none

OpenCode version

1.2.17

Steps to reproduce

  1. Type something in the input
  2. press any one of the newline keybinds ("shift+return,ctrl+return,alt+return,ctrl+j")
  3. none of the keybinds will work except for ctrl+j and the message will be directly sent to the chat

Screenshot and/or share link

Screen.Recording.2026-03-05.at.1.24.01.AM.mov

Operating System

Latest MacOS

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions