PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Keyboard manager sometimes doesn't work

Open yusufsalxp opened this issue 1 year ago • 3 comments

Microsoft PowerToys version

0.76.1

Installation method

PowerToys auto-update, Microsoft Store

Running as admin

Yes

Area(s) with issue?

Keyboard Manager

Steps to reproduce

  • Assign CTRL + Q to Alt + F4
  • Open some specific programs such as whatsapp, steam
  • After openning these, This shortcut doesn't work

✔️ Expected Behavior

Specified shortcut should be working even if some apps are opened.

❌ Actual Behavior

Shortcut doesn't work after this apps are opened.

Other Software

No response

yusufsalxp avatar Dec 08 '23 12:12 yusufsalxp

I apologize for getting into the wrong topic, but perhaps you can tell me where and how to make a request to add to this Keyboard Manager the ability to reassign one key in a particular application. Specifically, I would like it so that when I press the Enter key in Discord, Discord would accept the command to move the line (Shift + Enter) rather than send a message.

Gloynus avatar Dec 08 '23 18:12 Gloynus

This also is an issue for me.

On the bug report files I found the error "Improper JSON format for shortcut remaps":

[2023-12-12 08:26:39.274972] [p-13420] [t-13424] [info] keyboard-manager logger is initialized [2023-12-12 08:26:39.325444] [p-13420] [t-13424] [trace] SettingsHelper::LoadSettings() [2023-12-12 08:26:39.402071] [p-13420] [t-13424] [error] Improper JSON format for shortcut remaps. Skip to next remap type [2023-12-12 08:26:39.402235] [p-13420] [t-13424] [error] Improper JSON format for single key to text remaps. Skip to next remap type [2023-12-12 08:26:39.917450] [p-13420] [t-13424] [trace] SettingsHelper::LoadSettings() [2023-12-12 08:26:39.918140] [p-13420] [t-13424] [error] Improper JSON format for shortcut remaps. Skip to next remap type [2023-12-12 08:26:39.918462] [p-13420] [t-13424] [error] Improper JSON format for single key to text remaps. Skip to next remap type [2023-12-12 09:33:45.016280] [p-13420] [t-13560] [trace] PowerToys runner exited. [2023-12-12 09:33:45.016511] [p-13420] [t-13560] [trace] Exiting KeyboardManager engine [2023-12-12 09:33:58.404552] [p-20100] [t-18756] [info] keyboard-manager logger is initialized [2023-12-12 09:33:58.460091] [p-20100] [t-18756] [trace] SettingsHelper::LoadSettings() [2023-12-12 09:33:58.462507] [p-20100] [t-18756] [error] Improper JSON format for shortcut remaps. Skip to next remap type [2023-12-12 09:33:58.462620] [p-20100] [t-18756] [error] Improper JSON format for single key to text remaps. Skip to next remap type [2023-12-12 09:33:58.970382] [p-20100] [t-18756] [trace] SettingsHelper::LoadSettings() [2023-12-12 09:33:58.972002] [p-20100] [t-18756] [error] Improper JSON format for shortcut remaps. Skip to next remap type [2023-12-12 09:33:58.972108] [p-20100] [t-18756] [error] Improper JSON format for single key to text remaps. Skip to next remap type

I understand this is the referenced invalid JSON (three remappings): {"remapKeys":{"inProcess":[]},"remapShortcuts":{"global":[{"originalKeys":"164;112","newRemapKeys":"91;162;37"},{"originalKeys":"164;113","newRemapKeys":"91;162;39"},{"originalKeys":"164;115","newRemapKeys":"135"}],"appSpecific":[]}}

pac0rro avatar Dec 12 '23 09:12 pac0rro

I found a temporal workaround. Locking / unlocking (Win+L) the screen fixes the issue. Until the next time.

pac0rro avatar Dec 12 '23 15:12 pac0rro