PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

[KBM] Switching Caps Lock and L Ctrl causes Alt Gr to also behave as Caps Lock

Open Bisc0tt1 opened this issue 3 years ago • 5 comments

Microsoft PowerToys version

~~0.41.4~~ 0.49.1

Running as admin

  • [X] Yes

Area(s) with issue?

Keyboard Manager

Steps to reproduce

  • Open Keyboard Manager
  • Remap Caps Lock to Ctrl (Left)
  • Remap Ctrl (Left) to Caps Lock

Bug report log: PowerToysReport_2021-11-19-20-56-14.zip

Screenshot of Keyboard Manager: PowerToys Settings_7hfFnZaOQ9

✔️ Expected Behavior

Caps Lock and L Ctrl are swapped.

❌ Actual Behavior

The aforementioned, but Alt Gr now also behaves as Caps Lock.

Other Software

No response

Bisc0tt1 avatar Nov 19 '21 20:11 Bisc0tt1

Something tells me you are not using version 0.49.4. Besides the fact that it hasn't been released. Please update and let us know if the issue still occurs.

Jay-o-Way avatar Nov 23 '21 22:11 Jay-o-Way

AltGr and Ctrl+Alt gives (more) issues. There's something fishy about it and I think we should investigate, and make people more aware. Most people just don't know that AltGr = (L)Ctrl + (R)Alt and many remap their (left) Ctrl keys... Quote from Wikipedia:

On a typical, Windows-compatible PC keyboard, the AltGr key, when present, takes the place of the right-hand Alt key: if not engraved as such, that key may still be remapped to behave as though it is, (or emulated using a chord such as Ctrl+Alt).

Jay-o-Way avatar Nov 23 '21 22:11 Jay-o-Way

Something tells me you are not using version 0.49.4. Besides the fact that it hasn't been released. Please update and let us know if the issue still occurs.

I was using version 0.41.4 at the time of writing and that's what I wrote down. By now I've updated to version 0.49.1, but the issue persists. I did however check if it still happens on layouts that lack the AltGr key (US in my case) and the issue doesn't exist there as expected. I'll just change the remapping to affect RCtrl for now. However, certain applications do differentiate between LCtrl and RCtrl, so it's not a final solution for me.

Bisc0tt1 avatar Nov 24 '21 08:11 Bisc0tt1

Sorry, must have misread a digit. Hope your solution is good enough to work with. We / developers have to see what's possible. Some documentation is needed anyways.

@dedavis6797 in case anybody is planning to edit the docs, this can and should be mentioned, preferably under the list with hotkeys that can't be remapped.

Jay-o-Way avatar Nov 25 '21 19:11 Jay-o-Way

Related: #3497

jaimecbernardo avatar May 25 '23 10:05 jaimecbernardo

Hi o/ I'm running into the same issue these days. Is there a possible workaround?

TLavocat avatar Mar 12 '24 13:03 TLavocat

See https://github.com/microsoft/PowerToys/issues/19054#issuecomment-2146140065 for a workaround.

Netkatzen avatar Jun 03 '24 21:06 Netkatzen