ctrl+enter, ctrl+shift+enter getting recognized as ctrl+j #23213

Closed
opened 2026-01-31 08:35:33 +00:00 by claunia · 1 comment
Owner

Originally created by @lordgreg on GitHub (Apr 28, 2025).

Windows Terminal version

1.22.11141.0

Windows build number

10.0.26100.0 Microsoft Windows NT 10.0.26100.0

Other Software

wsl, ubuntu based.
same is with tmux, version 3.5

Steps to reproduce

  1. Open WSL in Windows Terminal, execute showkey -a (if not installed, install it using apt-get install or dnf....)
  2. Start showkey -a
  3. Press ctrl+enter, ctrl+shift+enter

Expected Behavior

I expect to have different trigger so I can use ctrl+shift+enter or ctrl+enter in my apps (tmux, vim) exactly the same as I am using them on other operating systems (Linux Fedora, Manjaro, MacOS) with different Terminals (Alacritty, Kitty, Ghostty, iTerm2)

Actual Behavior

The same keybind triggers as if you would press ctrl+j

Additional info

I've checked the issue https://github.com/microsoft/terminal/issues/6912, however, the last comments somehow showed it as duplicated of another ticket, that then got merged and completed. And another user claiming its not a bug its a feature and I should remap keybind such as ctrl+enter to f9 in powertoys. I dont think this workaround solves anything, but I would love to know how I can fix the issue.

Originally created by @lordgreg on GitHub (Apr 28, 2025). ### Windows Terminal version 1.22.11141.0 ### Windows build number 10.0.26100.0 Microsoft Windows NT 10.0.26100.0 ### Other Software wsl, ubuntu based. same is with tmux, version 3.5 ### Steps to reproduce 1. Open WSL in Windows Terminal, execute `showkey -a` (if not installed, install it using apt-get install or dnf....) 2. Start `showkey -a` 3. Press ctrl+enter, ctrl+shift+enter ### Expected Behavior I expect to have different trigger so I can use ctrl+shift+enter or ctrl+enter in my apps (tmux, vim) exactly the same as I am using them on other operating systems (Linux Fedora, Manjaro, MacOS) with different Terminals (Alacritty, Kitty, Ghostty, iTerm2) ### Actual Behavior The same keybind triggers as if you would press ctrl+j ### Additional info I've checked the issue https://github.com/microsoft/terminal/issues/6912, however, the last comments somehow showed it as duplicated of another ticket, that then got merged and completed. And another user claiming its not a bug its a feature and I should remap keybind such as ctrl+enter to f9 in powertoys. I dont think this workaround solves anything, but I would love to know how I can fix the issue.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:35:33 +00:00
Author
Owner

@DHowett commented on GitHub (Apr 30, 2025):

Thanks!
Alas, ^J is the canonical encoding for Ctrl+Enter in VT. (In the case of control characters, Shift doesn't matter.)

We're entertaining adding support for a richer keyboard protocol over in /dup #11509.

@DHowett commented on GitHub (Apr 30, 2025): Thanks! Alas, `^J` is the canonical encoding for <kbd>Ctrl+Enter</kbd> in VT. (In the case of control characters, <kbd>Shift</kbd> doesn't matter.) We're entertaining adding support for a richer keyboard protocol over in /dup #11509.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23213