PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

[KBM] Remapping of Windows Key requires delay

Open giddev opened this issue 5 years ago • 5 comments

ℹ Computer information

  • PowerToys version: v0.27.0
  • Windows build number: 1909
  • Running PowerToys as Admin: Yes

📝 Provide detailed reproduction steps (if any)

  1. Open Keyboard Manager and Remap Key.
  2. Key - Type: Win, Mapped To Win+tab
  3. Click Win(Left) to verify that pressing Win reflects this new mapping. i.e. it doesn't show you the start menu but instead your open programs
  4. Try use another windows button key combination. e.g. Win+E to open explorer. Notice instead of opening explorer first it opens both the open programs and then Windows Explorer

✔️ Expected result

Standard windows behaviour is that when you click Win button + E it doesn't show you your start menu and then explorer. It has a delay built in to prevent both from showing at the same time. Keyboard Manager also needs this delay to not open both shortcuts.

❌ Actual result

Pressing Win + E shows both the Win shortcut as well as the default Win + E shortcut

giddev avatar Dec 24 '20 06:12 giddev

Have you tried to use PowerToys as an Administator

noraa-junker avatar Dec 24 '20 06:12 noraa-junker

Have you tried to use PowerToys as an Administator Yes

giddev avatar Dec 24 '20 08:12 giddev

Here is another test case that justifies the delay.

  1. Press Win + Right Arrow when any Windows window is active. Notice you can move it. This is standard windows behaviour. (Irrespective if fancyzones is enabled or not).
  2. Open Keyboard Manager and Remap Key.
  3. Key - Type: Win, Mapped To Win+tab
  4. Click Win(Left) to verify that pressing Win reflects this new mapping. i.e. it doesn't show you the start menu but instead shows your open programs
  5. Press Win + E and notice that Windows Explorer opens. Now use Win + Right Arrow (or any other). Notice that one cannot move windows anymore if the Windows key is mapped.

It should have the standard delay the same as windows has for the Windows button

giddev avatar Dec 24 '20 10:12 giddev

This is purely just because #8952, default Win(Super key) = Start menu behavior is on "key up", not "key down" as currently remapping works.

davidrapan avatar Jan 27 '21 17:01 davidrapan

Closing this in favor of https://github.com/microsoft/PowerToys/issues/8952 because the proper fix is to support remapping on key up and key down. Adding a delay is not acceptable.

enricogior avatar Apr 30 '21 05:04 enricogior