Powertoys: [KBM] - "Remap a key" causes crash

Created on 18 Sep 2020  ·  14Comments  ·  Source: microsoft/PowerToys

ℹ Computer information

  • PowerToys version: v.021.1 and higher
  • PowerToy Utility: Keyboard manager
  • Running PowerToys as Admin: yes
  • Windows build number: 2004 (19041.508)

📝 Provide detailed reproduction steps (if any)

  1. Open powertoys
  2. Go to remapping and add three remaps
  3. Click accept and reclick remap

✔️ Expected result

Remapping keys

❌ Actual result

Powertoys Crashes

Issue-Bug Priority-0 Product-Keyboard Shortcut Manager Resolution-Fix-Committed

All 14 comments

@arjunbalgovind fyi

@uknowsam can you show us what you're trying to remap to? What keyboard language are you using

@arjunbalgovind Possibly fixed here? https://github.com/microsoft/PowerToys/issues/6483

@arjunbalgovind Possibly fixed here? #6483

It doesn't sound like it's that area of the code, since the user mentioned that they were able to save the settings and it crashes on re-opening the KBM window.

@uknowsam can you share the Keyboard Manager configuration? It can be found at C:\Users\<UserName>\AppData\Local\Microsoft\PowerToys\Keyboard Manager\default.json.

@arjunbalgovind Possibly fixed here? #6483

It doesn't sound like it's that area of the code, since the user mentioned that they were able to save the settings and it crashes on re-opening the KBM window.

Yes that is right im not trying to edit an keymap but trying to go to screen where i can edit. So it happens when clicking on "Remap a key"

@uknowsam can you share the Keyboard Manager configuration? It can be found at C:\Users\<UserName>\AppData\Local\Microsoft\PowerToys\Keyboard Manager\default.json.

{"remapKeys":{"inProcess":[{"originalKeys":"160","newRemapKeys":"160;219"},{"originalKeys":"192","newRemapKeys":"162;160;9"},{"originalKeys":"20","newRemapKeys":"160;221"}]},"remapShortcuts":{"global":[],"appSpecific":[]}}

@uknowsam can you show us what you're trying to remap to? What keyboard language are you using

Im not sure im trying to check but I can see dutch and United States

Are you able to open Remap a key now or does it keep crashing?

Are you able to open Remap a key now or does it keep crashing?

The first three keys it worked. Now instant crash every time. Also did an restart and also uninstall and reinstall but didnt work

Thanks for the feedback @uknowsam, I can reproduce the crash with the settings you provided. I have to look into how it got into this invalid settings state.

@uknowsam The crash seems to be happening because of the Shift(left) -> Shift(Left) + [ remap. For now I recommend deleting the default.json file I had asked for earlier to prevent the crash, and once it's working don't add the Shift(left) -> Shift(left) + [ remap, or you can add Shift(left) -> Shift + [ instead. [note for the Shift on the target side it's not the left version. It should be either just Shift or Shift(right) to avoid the crash]

@uknowsam The crash seems to be happening because of the Shift(left) -> Shift(Left) + [ remap. For now I recommend deleting the default.json file I had asked for earlier to prevent the crash, and once it's working don't add the Shift(left) -> Shift(left) + [ remap, or you can add Shift(left) -> Shift + [ instead. [note for the Shift on the target side it's not the left version. It should be either just Shift or Shift(right) to avoid the crash]

Thanks for the reply.

Deleting defualt.json is not working but making it empty worked.

Actually I pressed CTRL + [ instead of ALT + [

So the alt version is working fine!

Thanks for helping me, and i hope it will get fix for other people who need something with shift

Was this page helpful?
0 / 5 - 0 ratings

Related issues

niels9001 picture niels9001  ·  3Comments

enricogior picture enricogior  ·  3Comments

saahmedm picture saahmedm  ·  3Comments

Martin-Hausleitner picture Martin-Hausleitner  ·  3Comments

Garconis picture Garconis  ·  3Comments