[BUG] keybindings.json is rebinds not working for Enter key
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?
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
- update claude to the latest version
- modify the keybindings.json to rebind the enter key
chat;submittochat:newline - restart claude
- open claude desktop and start a new code session
- in the chat box, type "you shouldn't see this, if you do than the Enter rebinding is not working, hitting enter now"
- hit enter
- 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" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗