[BUG] Shift + Enter submits the prompt instead of inserting a newline

Status Closed — not planned
Reported on v2.1.9
Maintainer reply None cached
Activity 5 comments · opened Jan 16, 2026 · closed Feb 19, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Sometimes <kbd>Shift</kbd>+<kbd>Enter</kbd> submits the prompt.

What Should Happen?

<kbd>Shift</kbd>+<kbd>Enter</kbd> should always insert a newline.

Error Messages/Logs

Steps to Reproduce

I can't find a way to reproduce it. It's unpredictable. The only thing I found was that restarting the conversation (terminate and do claude --continue) repaired the buggy behavior.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.9

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

5 Comments

rolznz · 8 months ago

I can reproduce this consistently when executing claude code from within a vscode terminal

sscovil · 8 months ago

This happens for me on macOS/Darwin using the built-in Terminal app. I can no longer create new lines. (It has been an issue for several weeks.)

DShannon-Magnet · 8 months ago

Shift+Enter always submits the code in PowerShell. I don't even write prompts in there anymore. Have to write in Notepad and paste into PowerShell.

github-actions[bot] · 7 months ago

Closing for now — we still need a bit more information to move forward. Please open a new issue if this is still relevant.

github-actions[bot] · 7 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.