Skip to content

Feature: Allow custom keybindings to send raw hex codes / OpenCode SHIFT+ENTER Fix. #8462

Closed

Description

@mynameistito

Pre-submit Checks

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

  1. Install Opencode (curl -fsSL https://opencode.ai/install | bash or bun add -g opencode-ai).
  2. Run opencode in Warp.
  3. Type a prompt and press Shift+Enter to add a new line.
  4. 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

Activity

  1. mynameistito commented on Jan 17, 2026

    @mynameistito
    Author
  2. fangwangme commented on Jan 19, 2026

    @fangwangme

    It's disgusting to hijack such action. Please don't change universal behaviors.

  3. miankhalid commented on Jan 19, 2026

    @miankhalid

    facing the same issue and +1 for a fix. (on MacOS)

  4. mynameistito commented on Jan 19, 2026

    @mynameistito
    Author

    facing the same issue and +1 for a fix.

    Glad to see it's not an isolated issue!

  5. yesacarlosm commented on Jan 19, 2026

    @yesacarlosm

    ctrl + j is the way on unix based systems

  6. changed the title [-]Can't get shift+enter to produce new line in Opencode[/-] [+]Feature: Allow custom keybindings to send raw hex codes (e.g., \033OM for Shift+Enter) / OpenCode SHIFT+ENTER Fix.[/+] on Jan 20, 2026
  7. changed the title [-]Feature: Allow custom keybindings to send raw hex codes (e.g., \033OM for Shift+Enter) / OpenCode SHIFT+ENTER Fix.[/-] [+]Feature: Allow custom keybindings to send raw hex codes / OpenCode SHIFT+ENTER Fix.[/+] on Jan 20, 2026
  8. m4ttyk commented on Jan 24, 2026

    @m4ttyk

    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)

  9. jamesblackwell commented on Jan 27, 2026

    @jamesblackwell

    Any way to get this fixed? will likely have to stop using Warp as a result

  10. mynameistito commented on Jan 27, 2026

    @mynameistito
    Author

    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

  11. tl-sjmcdowall commented on Feb 2, 2026

    @tl-sjmcdowall

    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..

  12. mynameistito commented on Feb 3, 2026

    @mynameistito
    Author

    Huge news regarding this issue.

    "This is tracked and will be addressed soon!"

    Warp Eng on Slack

  13. alokedesai commented on Feb 6, 2026

    @alokedesai
    Contributor

    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!

  14. 3 remaining items

  15. alokedesai commented on Feb 8, 2026

    @alokedesai
    Contributor

    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.

  16. cometlj commented on Feb 9, 2026

    @cometlj

    how can I rollback to the version v0.2026.02.04.08.20.stable_02 ? anyone help?

  17. cometlj commented on Feb 11, 2026

    @cometlj

    I managed to get the download link, the shift+enter-> insert the newline func comes back!

  18. soundstep commented on Feb 20, 2026

    @soundstep

    Very frustrating, what's the plan to add the shift+enter back?

  19. cometlj commented on Feb 20, 2026

    @cometlj

    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

  20. chipit24 commented on Feb 20, 2026

    @chipit24

    I just ended up using Hammerspoon to map the shortcut I needed to ⌃+j when my terminal was focused.

  21. alokedesai commented on Mar 9, 2026

    @alokedesai
    Contributor

    Hey all, kitty keyboard protocol support (which gets shift-enter to work in opencode) is now rolled out our Preview build: https://warp.dev/download-preview

    It should be out in our Stable build this week assuming there are no issues.

  22. selahattinunlu commented on Mar 12, 2026

    @selahattinunlu

    Yay!!! I tried the preview now. It works fine. Thank you so much @alokedesai 🎉

  23. alokedesai commented on Mar 20, 2026

    @alokedesai
    Contributor

    Hey all, the latest version of Warp now has support for the Kitty keyboard protocol, which addresses this issue. Thanks for your patience here and let me know if you see any issues!

  24. flavio1110 commented on Mar 25, 2026

    @flavio1110

    Same here! It works fine in the latest version.

  25. romanwozniak commented on Apr 16, 2026

    @romanwozniak

    With the added KKP support, Shift+Enter issue is resolved. But it is still impossible to use Cmd+Left/Rigth, Cmd+Backspace, and Cmd+Shift+Left/Right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions