[BUG] Slash command does not work with modified keybindings
Open 💬 2 comments Opened May 26, 2026 by Baanrow
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?
Bringing up a slash command then pressing ctrl+enter does not send the slash command.
What Should Happen?
Bringing up a slash command then pressing ctrl+enter should send that slash command.
Error Messages/Logs
Steps to Reproduce
Please refer to https://github.com/anthropics/claude-code/issues/57139 for context. I added a comment to 57139 however it has not been picked up so I am creating this new issue.
The fix in v2.1.141 successfully resolved this for standard text prompts, however the bug is still present when using slash commands.
- I am now on Claude Code 2.1.160
- OS: macOS
- Terminal: Warp
- Claude Code CLI
- I note this fix was released with 2.1.141
- My relevant keybindings are as below;
{
"context": "Chat",
"bindings": {
"ctrl+enter": "chat:submit",
"enter": "chat:newline",
}
},
- Note that
ctrl+enterdoes now correctly work for sending text prompts. - Pressing
enterdoes correctly create a new line in the input window.
What's Wrong
- Bringing up a slash command then pressing
ctrl+enterdoes not send the slash command.
What Should Happen
- Bringing up a slash command then pressing
ctrl+entershould send that slash command.
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.160
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Warp
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗