microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.28k stars 6.55k forks source link

Keyboard Manager become not working when using ten key pad #24557

Open yuki-js opened 1 year ago

yuki-js commented 1 year ago

Microsoft PowerToys version

0.68.0

Installation method

GitHub

Running as admin

Yes

Area(s) with issue?

Keyboard Manager

Steps to reproduce

  1. Plug in HHKB Professional HYBRID Type-S(wired connection)
  2. Plug in Filco Majestouch TenKeyPad 2 Professional
  3. Type some numeric character on key pad
  4. Press some remapped shortcut in HHKB(I am using Win-V as Ctrl-V)

✔️ Expected Behavior

The remapped shortcut is dispatched(For me, Ctrl-V is pressed and text is pasted)

❌ Actual Behavior

The remapped shortcut settings are ignored and a raw input is dispatched(Win-V is pressed and Clipboard menu is shown)

Other Software

Firefox 110.0.1

novavision commented 1 year ago

Same here after updating to PowerToys 0.68. The only difference I updated it within the PowerToys update, not by GitHub. All keyboard mapping are broken while I see all of them in the list.

yuki-js commented 1 year ago

Shortcut event combined with Win is not reached to HookProc after pressing any 0-9 ten key. https://github.com/microsoft/PowerToys/blob/65378200c6c18d6d633afae602d9536774c8af9c/src/modules/keyboardmanager/KeyboardManagerEngineLibrary/KeyboardManager.cpp#L101

yuki-js commented 1 year ago

I tried many times building and debugging with Visual Studio. But after many trials, the problem became not reproducible as in the description above 😭 I was happy not to be bothered even with keypad though.

At least I found out that KBM received raw WM_KEYDOWM events as expected, but corresponding events are not injected. https://gist.github.com/yuki-js/973f90472a942bb25f105a5de5983488

TheJoeFin commented 1 year ago

Is this issue still relevant in v0.73? /needinfo

yuki-js commented 1 year ago

@TheJoeFin Unfortunately, after using v0.72 for a while, the issue resurfaced. Furthermore, even after updating to v0.73 via auto-update, the problem still persists.

TheJoeFin commented 1 year ago

Understood. Could you provide the details of the exact keyboard you have and provide a /bugreport

microsoft-github-policy-service[bot] commented 1 year ago

Hi there!

We need a bit more information to really debug this issue. Can you add a "Report Bug" zip file here? You right click on our system tray icon and just go to report bug. Then drag the zipfile from your desktop onto the GitHub comment box in this issue. Thanks!
Report Bug

yuki-js commented 1 year ago

Sending bug report. To avoid unexpected private information leakage, I removed %LOCALAPPDATA%/Microsoft/PowerToys before getting a bug report zip. The problem still persists and I can't use Win+V shortcut at the time of writing.

PowerToysReport_2023-09-23-22-09-01.zip

cinnamon-msft commented 5 days ago

Are you still experiencing this issue? /needinfo

microsoft-github-policy-service[bot] commented 9 hours ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.