Skip to content

"Shift (Left) + Shift (Right)" keyboard remapping is invalid #37616

@ZmaZes

Description

@ZmaZes

Microsoft PowerToys version

0.88.0

Installation method

GitHub

Running as admin

Yes

Area(s) with issue?

Keyboard Manager

Steps to reproduce

  1. Open Power Toys Settings, navigate to Keyboard Manager
  2. Select "Remap a Remap a shortcut"
  3. Add a shortcut remapping
  4. From the first dropdown under "Shortcut", select "Shift (Left)"
  5. From the second dropdown, select "Shift (Right)"
  6. Observe that there is an error that says "Shortcut cannot contain a repeated modifier"

✔️ Expected Behavior

  1. When selecting the left variant of a modifier key (ex: left shift) as input 1 and the right variant of that same modifier key (ex: right shift) as input 2 for the shortcut, there would not be a conflict, as both keys can be pressed independently and they function as two different keys on they keyboard, hence no key is actually being repeated here. This allows for creating a shortcut that requires both shift keys to be held at the same time.
  2. When selecting the left or right variation of a modifier key (ex: left shift) as input 1 and the generic (non-left/right) variant of that same modifier key (ex: shift) as input 2 for the shortcut, the error would display, as pressing the left shift key would also trigger the generic key press and the modifier is therefore repeated.

❌ Actual Behavior

  1. When selecting the left variant of a modifier key (ex: left shift) as input 1 and the right variant of that same modifier key (ex: right shift) as input 2 for the shortcut, an error pops up declaring that the shortcut "cannot contain a repeated modifier", even though the left shift key is a different key than the right shift key and has no reason to conflict. (Normal number keys and numpad keys function correctly and are allowed to be part of the same trigger, so having this restriction on the modifier keys like shift and ctrl specifically is unnecessarily limiting)
  2. The behavior for scenario 2 outlined under expected behavior performs exactly as expected.

Other Software

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't workingNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teams

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions