Ctrl+Shift+W doesn't work if Ctrl key is remapped. #15092

Open
opened 2026-01-31 04:28:22 +00:00 by claunia · 6 comments
Owner

Originally created by @kasajian on GitHub (Sep 5, 2021).

Originally assigned to: @lhecker on GitHub.

Windows Terminal version (or Windows build number)

1.9.1942.0

Other Software

SharpKeys

Steps to reproduce

  1. Install SharpKeys (or some other similar app) that maps the Caps+Lock key to the Ctrl key
  2. open Windows Terminal, and create a tab or a pane.
  3. Attempt to close the tab or pane with Ctrl+Shift+W
    (using the Caps+Lock key instead of the Ctrl iey)

Expected Behavior

pane or tab should close

Actual Behavior

It doesn't close. But if you use the actual Ctrl key, it will work.

Please note that this is not SharpKeys related. That product simply helps construct the data that needs to be placed in the registry. The key mapping is a Windows feature.

Originally created by @kasajian on GitHub (Sep 5, 2021). Originally assigned to: @lhecker on GitHub. ### Windows Terminal version (or Windows build number) 1.9.1942.0 ### Other Software SharpKeys ### Steps to reproduce 1. Install SharpKeys (or some other similar app) that maps the Caps+Lock key to the Ctrl key 2. open Windows Terminal, and create a tab or a pane. 3. Attempt to close the tab or pane with Ctrl+Shift+W (using the Caps+Lock key instead of the Ctrl iey) ### Expected Behavior pane or tab should close ### Actual Behavior It doesn't close. But if you use the actual Ctrl key, it will work. Please note that this is not SharpKeys related. That product simply helps construct the data that needs to be placed in the registry. The key mapping is a Windows feature.
Author
Owner

@DHowett commented on GitHub (Sep 7, 2021):

@lhecker I suspect that this will be interesting to you!

@DHowett commented on GitHub (Sep 7, 2021): @lhecker I suspect that this will be interesting to you!
Author
Owner

@hsupu commented on GitHub (Dec 26, 2021):

Same problem, Windows Terminal Version: 1.11.3471.0, remapping by SharpKeys (modify Registry)

I just failed to use Ctrl+Spacebar because remapped Ctrl to CapsLock. The original Ctrl works.

UPDATE: 1.12.10393.0 still not work

UPDATE: For laptop, remapped Ctrl works on external keyboard, neither original nor remapped Ctrl works on internal keyboard; for PC, it has only external keyboard so the remapped key works. I don't understand..

@hsupu commented on GitHub (Dec 26, 2021): Same problem, Windows Terminal Version: 1.11.3471.0, remapping by SharpKeys (modify Registry) I just failed to use `Ctrl+Spacebar` because remapped `Ctrl` to `CapsLock`. The original `Ctrl` works. UPDATE: 1.12.10393.0 still not work UPDATE: For laptop, remapped Ctrl works on external keyboard, neither original nor remapped Ctrl works on internal keyboard; for PC, it has only external keyboard so the remapped key works. I don't understand..
Author
Owner

@manifestinteractive commented on GitHub (Feb 13, 2022):

@kasajian thanks for posting, thought I was going crazy experiencing the same thing.

@manifestinteractive commented on GitHub (Feb 13, 2022): @kasajian thanks for posting, thought I was going crazy experiencing the same thing.
Author
Owner

@jcrben commented on GitHub (Oct 14, 2023):

I noticed that the remapped Caps Lock doesn't work right in this case on my work machine, but on my personal machine using PowerToys Keyboard Manager I'm not having the same issue.

Personal machine
Attaching the system info for my personal thinkpad t480 running Windows 10.
systeminfo.txt

Keyboard Manager right now is 0.70.1 0.74.1 - installed via winget - and my configuration is minimal:
image

Work machine
It's a Dell 5420 - not attaching more details. My work doesn't let me install PowerToys so I've tried AHK instead.

@jcrben commented on GitHub (Oct 14, 2023): I noticed that the remapped Caps Lock doesn't work right in this case on my work machine, but on my personal machine using PowerToys Keyboard Manager I'm not having the same issue. **Personal machine** Attaching the system info for my personal thinkpad t480 running Windows 10. [systeminfo.txt](https://github.com/microsoft/terminal/files/12907934/systeminfo.txt) Keyboard Manager right now is ~~0.70.1~~ 0.74.1 - installed via winget - and my configuration is minimal: ![image](https://github.com/microsoft/terminal/assets/5614134/8644048f-3d02-4fd3-b90f-c6c5efa5df36) **Work machine** It's a Dell 5420 - not attaching more details. My work doesn't let me install PowerToys so I've tried AHK instead.
Author
Owner

@kasajian commented on GitHub (Oct 16, 2024):

How can we get this to be fixed?

The developers who wrote this clearly aren't handling the Ctrl key the right way. It's fine. Mistakes happen. But why not fix it after you're told about it?

It's been like 3 years.

How do we get this thing attention?

@kasajian commented on GitHub (Oct 16, 2024): How can we get this to be fixed? The developers who wrote this clearly aren't handling the Ctrl key the right way. It's fine. Mistakes happen. But why not fix it after you're told about it? It's been like 3 years. How do we get this thing attention?
Author
Owner

@zadjii-msft commented on GitHub (Oct 16, 2024):

Anyone is welcome to investigate yourself what's up here. The code that handles keybindings is right here:

3a06826915/src/cascadia/TerminalControl/TermControl.cpp (L1749)

That's where I'd start with a breakpoint.

There's but a single 👍 on this issue, which means this probably isn't bubbling to the top of our list of priorities any time soon. But we'd be happy to review a fix

@zadjii-msft commented on GitHub (Oct 16, 2024): Anyone is welcome to investigate yourself what's up here. The code that handles keybindings is right here: https://github.com/microsoft/terminal/blob/3a06826915d11ee2124de9b35e42300e1c3f68d5/src/cascadia/TerminalControl/TermControl.cpp#L1749 That's where I'd start with a breakpoint. There's but a single 👍 on this issue, which means this probably isn't bubbling to the top of our list of priorities any time soon. But we'd be happy to review a fix
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15092