Feature: Allow custom keybindings to send raw hex codes / OpenCode SHIFT+ENTER Fix.
Pre-submit Checks
- [x] I have searched Warp feature requests and there are no duplicates
- [x] I have searched Warp docs and my feature is not there
Describe the solution you'd like?
Describe the solution you'd like?
I would like the ability to map Shift+Enter (and other keys) to send specific hex codes / escape sequences (e.g., 0x1b 0x0d or \033OM) to the running terminal process, or for the issue to be resolved without the need to custom map it.
Why is this needed?
I am using Opencode, an AI coding agent CLI.
In Opencode, Shift+Enter is used to create a new line in the prompt window without submitting the message.
Because Warp intercepts Shift+Enter to handle its own input editor, the keystroke never reaches the Opencode process, or it submits the command prematurely.
Other terminals (like iTerm2 or Alacritty) allow remapping Shift+Enter to send raw hex codes, which fixes this compatibility issue. Warp currently lacks a "Send Hex Code" action in the Keyboard Shortcuts settings.
Steps to reproduce
- Install Opencode (
curl -fsSL https://opencode.ai/install | bashorbun add -g opencode-ai). - Run
opencodein Warp. - Type a prompt and press
Shift+Enterto add a new line. - Result: Warp acts on the key (often submitting the command) instead of passing the new line signal to the Opencode TUI.
Additional Context
Opencode documentation recommends remapping Shift+Enter for compatibility on Termina:
https://opencode.ai/docs/keybinds/#shiftenter
Currently, the only workaround in Warp is to use Ctrl+J, which disrupts muscle memory.
Operating system (OS)
Windows
How important is this feature to you?
5 (Can't work without it!)
Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1
None
Related Issues: https://github.com/anomalyco/opencode/issues/8038 https://github.com/anomalyco/opencode/issues/4997
It's disgusting to hijack such action. Please don't change universal behaviors.
facing the same issue and +1 for a fix. (on MacOS)
facing the same issue and +1 for a fix.
Glad to see it's not an isolated issue!
ctrl + j is the way on unix based systems
Same in my Warp. Claude Code handles it well out of the box, though.
Btw, input_delete_line also doesn't work in Warp (on MacOS)
Any way to get this fixed? will likely have to stop using Warp as a result
Any way to get this fixed? will likely have to stop using Warp as a result
Quick fix, not to my knowledge. I tried exploring my options with different terminals and unfortnately Warp seemed like the most polished one. Even, tho I don't touch any of the AI features.
Raising your voice in their Discord: https://discord.com/invite/warpdotdev or Slack which I think is accessable via the Terminal, might also assist. I've reached out in both places and haven't heard anything yet, to my knowledge.
edit: added discord and slack mentions
I tried to get any of the meta+return to work by hacking the opencode config key binds AND the Warp config Key bindings to use the same thing or different things etc. But nothing worked that I tried (cmd+, option+ etc) .. Just FYI. Would be nice to have a generic solution to pick the version of meta+return / enter wanted for a newline to be passed..
Huge news regarding this issue.
"This is tracked and will be addressed soon!"
Warp Eng on Slack
Hi all, thanks for your patience. The latest version of Warp (v0.2026.02.04.08.20.stable_02) now has support for the Kitty keyboard protocol, which should address this issue. I'm going to close this out but please file an issue if you see any bugs. Thanks!
it works!! just tested Shift + Return on mac, thanks team! 🤜 🤛
Doesn't seem to work on Windows, unless I'm doing something wrong lol
it works!! just tested Shift + Return on mac, thanks team! 🤜 🤛
Can you please explain how you do it ? still not able to work i configured both WARP and Opencode but no luck
Hi all, unfortunately we had to roll this back due to it regressing some pretty core neovim flows. I'll ping back as soon as it's rolled forward.
how can I rollback to the version v0.2026.02.04.08.20.stable_02 ? anyone help?
I managed to get the download link, the shift+enter-> insert the newline func comes back!
Very frustrating, what's the plan to add the shift+enter back?
Very frustrating, what's the plan to add the shift+enter back?
can use the shift+enter in version v0.2026.02.04.08.20.stable_02, you can try
I just ended up using Hammerspoon to map the shortcut I needed to ⌃+j when my terminal was focused.