-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remaps incorrectly if I change keyboard layout #31042
Comments
/bugreport |
Keyboard manager remaps keys to other keys, not ASCII to ASCII. This means key ` is key 192 (which is OEM 3 Key) will always be mapped to Escape. Switching languages has no affect on the keys. This enhancement is being tracked in another issue. So this one will be closed in favor of that issue. Please add your support there. /dup #6976 |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
I'm not sure we understand each other. I use US english kb layout, enter Keyboard Manager and choose to remap ` to Esc, and Esc to `. I then switch to Norwegian kb layout for some work, and discover that ø is mapped to Esc, and Esc to ø. If I open Keyboard Manager I can see that mapping is changed. ø to Esc, and Esc to ø. I really don't understand why ø and ` should have anything in common at all. They are not the same key, in fact are at opposite sides of the keyboard. |
@haraldpost what type of keyboard do you have? From the one log you shared it looked like the key was OEM key 3, which are unique to your keyboard manufacturer. Is it the same physical key on your keyboard? |
@TheJoeFin Excuse my ignorance but I don't know what an OEM key 3 is. The keyboard is a Lenovo ThinkPad TrackPoint Keyboard II, norwegian key layout. The ø key replaces the ; key in US english. I just now plugged in my mechanical US english key layout keyboard now and I still have that ø key maps to Esc. |
Details on OEM Keys: https://stackoverflow.com/questions/582403/what-are-the-oem-keys-in-the-system-windows-forms-keys-enumeration It is strange that they keyboard would swap which key is which OEM key. Just to make sure I understand the problem, is this correct: If you are willing I'd be interested to see what the key codes are reported in the Keyboard Manger. Can you remap ` to A and ø to B then share the settings from the Keyboard Manger either via a bugreport, or by going to your local settings at I don't think PowerToys would be changing the key code when you change keyboard, I suspect there is something going on with the key being reported to PowerToys when the language changes. |
maybe related to #25368 |
I understand the symbol changes, but can you provide Keyboard settings before and after language change to know if it is the Keycode changing or the way Windows is reading/reporting the key to PowerToys @haraldpost |
Microsoft PowerToys version
0.77.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
Keyboard Manager
Steps to reproduce
US english kb layout. Remap ` to Esc. Remap Esc to `. Then swap to Norwegian kb layout momentarily.
✔️ Expected Behavior
ø should not be affected by remap of Esc and `.
❌ Actual Behavior
ø and Esc have swapped places. Keypress to Esc gives ø. Keypress to ø gives Esc. It seems ASCII code 96 and 155 somehow are interchanged?
Other Software
No response
The text was updated successfully, but these errors were encountered: