claude-code - 💡(How to fix) Fix [BUG] keybindings.json is rebinds not working for Enter key [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49211Fetched 2026-04-17 08:47:44
View on GitHub
Comments
2
Participants
2
Timeline
9
Reactions
0
Timeline (top)
labeled ×5commented ×2closed ×1unlabeled ×1

Error Message

Error Messages/Logs

Code Example

Claude told me
> But honestly, the core issue is that rebinding enter away from submit appears to be a bug in the current version of Claude Code. The keybindings file we created is correct per the docs — it just isn't being honored.

I'd recommend reporting this as a bug at github.com/anthropics/claude-code/issues. The gist:

Enter key cannot be rebound from chat:submit to chat:newline — tried null unbind, direct rebind, and split context blocks in keybindings.json. None take effect.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

Enter key cannot be rebound from chat:submit to chat:newline — tried null unbind, direct rebind, and split context blocks in keybindings.json. None take effect.

What Should Happen?

if Enter key is rebound from chat:submit to chat:newline in keybindings.json, when entering a query in the chat windows, hitting enter should start a new line, not submit the query text

Error Messages/Logs

Claude told me
> But honestly, the core issue is that rebinding enter away from submit appears to be a bug in the current version of Claude Code. The keybindings file we created is correct per the docs — it just isn't being honored.

I'd recommend reporting this as a bug at github.com/anthropics/claude-code/issues. The gist:

Enter key cannot be rebound from chat:submit to chat:newline — tried null unbind, direct rebind, and split context blocks in keybindings.json. None take effect.

Steps to Reproduce

  1. update claude to the latest version
  2. modify the keybindings.json to rebind the enter key chat;submit to chat:newline
  3. restart claude
  4. open claude desktop and start a new code session
  5. in the chat box, type "you shouldn't see this, if you do than the Enter rebinding is not working, hitting enter now"
  6. hit enter
  7. Claude responds, instead of the chat entry textbox starting a new line

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No idea, claude did 2 updates in the space of an hour and I'm not sure what the previous version was

Claude Code Version

1.2773.0 (884b37)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

<img width="787" height="1116" alt="Image" src="https://github.com/user-attachments/assets/a02685a2-44a2-4da1-9280-0badebf0f031" /> <img width="795" height="1028" alt="Image" src="https://github.com/user-attachments/assets/94515d45-2e0b-4f45-b6a4-63ef2bfd7cb4" />

extent analysis

TL;DR

The Enter key cannot be rebound from chat:submit to chat:newline in the keybindings.json file, likely due to a bug in the current version of Claude Code.

Guidance

  • Verify that the keybindings.json file is correctly formatted and the rebind syntax is accurate, as the issue suggests the file is correct per the docs.
  • Try resetting the keybindings to their default state and then reapplying the custom rebind to see if it resolves the issue.
  • Since this is reported as a regression, checking the changelog or release notes of previous versions might provide insight into when this functionality was last known to work.
  • The fact that Claude responds instead of starting a new line when Enter is pressed indicates the rebind is not being honored, suggesting a potential issue with how keybindings are processed in the current version.

Notes

The exact previous version where this functionality last worked is unknown due to rapid updates, making it challenging to pinpoint the exact cause or version where the regression occurred.

Recommendation

Apply a workaround by potentially using a different key for newline submission or awaiting a fix in a future version, as the current version seems to have a bug preventing the Enter key rebind from working as expected.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] keybindings.json is rebinds not working for Enter key [2 comments, 2 participants]