[BUG] Claude Desktop (Windows x64 1.1.2685) — Shift+Enter sends message instead of inserting newline in Code tab

Status Fixed / completed
Reported on v2.1.39
Maintainer reply ✓ Yes — amorriscode
Activity 5 comments · opened Feb 12, 2026 · closed Feb 18, 2026
💡 Likely answer: A maintainer (amorriscode, contributor) responded on this thread — see the highlighted reply below.

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?

In Claude Desktop for Windows, pressing Shift+Enter in the Code tab input field sends the message immediately instead of inserting a newline. The same keyboard shortcut works correctly in the Chat tab, where it inserts a newline as expected.

  • Chat tab: Shift+Enter correctly inserts a newline ✅
  • Code tab: Shift+Enter submits the message (same as Enter) ❌

This makes it impossible to compose multi-line prompts in the Code tab. Since the Code tab is specifically designed for coding tasks where multi-line input (code snippets, structured prompts) is common, this significantly impacts usability.

What Should Happen?

Shift+Enter should insert a newline in both the Chat tab and the Code tab input fields, consistent with the industry-standard behavior used in virtually all modern messaging and code editing interfaces (Slack, Discord, VS Code, ChatGPT, etc.).

The bug likely originates in the frontend input handler for the Code tab, which does not check for event.shiftKey before triggering message submission on Enter.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Desktop
  2. Switch to the Chat tab
  3. Type some text in the input field
  4. Press Shift+Enter → ✅ A newline is inserted (correct behavior)
  5. Switch to the Code tab
  6. Type some text in the input field
  7. Press Shift+Enter → ❌ The message is sent instead of inserting a newline

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.39

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

5 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/25112
  2. https://github.com/anthropics/claude-code/issues/25089
  3. https://github.com/anthropics/claude-code/issues/25057

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

IliyaBrook · 8 months ago

Sorry for the duplicate — I found #25070 after creating this issue.
Just wanted to add that this also affects Windows. The Code tab is essentially unusable right now since there's no way to write multi-line prompts.

amorriscode contributor · 7 months ago

This should be fixed now.

jhardin-accumula · 7 months ago

2026-02-24 Still occurring in Claude Code 2.1.52 on Windows. [CTRL]+[ENTER] does work (for me).

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.