Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard shortcut causes Ctrl key to act stuck #17035

Open
1 task
jjc092 opened this issue Mar 14, 2022 · 7 comments
Open
1 task

Keyboard shortcut causes Ctrl key to act stuck #17035

jjc092 opened this issue Mar 14, 2022 · 7 comments
Assignees
Labels
Issue-Bug Something isn't working Priority-1 Bug that is high priority Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager Status-In progress This issue or work-item is under development

Comments

@jjc092
Copy link

jjc092 commented Mar 14, 2022

Microsoft PowerToys version

0.56.2

Running as admin

  • Yes

Area(s) with issue?

Keyboard Manager

Steps to reproduce

Create a keyboard manager shortcut "Ctrl + any key" (specifically "Ctrl", not "Ctrl (Right)" or "Ctrl (Left)"), then trigger this shortcut using right ctrl.

✔️ Expected Behavior

The trigger to work with either left ctrl or right ctrl

❌ Actual Behavior

The shortcut worked as expected, but afterward the computer behaved as if the ctrl key was still being held. This behavior continued until left ctrl was pressed and released. The issue only occurred when the shortcut was triggered using right ctrl.

I was able to reproduce this on another computer, the only difference being that right ctrl had to be pressed to correct the issue instead of left ctrl.

Other Software

No response

@jjc092 jjc092 added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 14, 2022
@jaimecbernardo
Copy link
Collaborator

Hi, We'd like to try to replicate this.
Does it happen everytime?
What specific mapping is being used to cause this?
/needinfo

@jaimecbernardo jaimecbernardo added the Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager label Mar 16, 2022
@ghost ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 16, 2022
@jjc092
Copy link
Author

jjc092 commented Mar 17, 2022

Yes, it happens every time. I first noticed the issue using “Ctrl+PgUp” and “Ctrl+PgDn” as shortcuts to adjust the volume. After I would trigger the shortcut with right ctrl, links would open in new tabs and keys like S and P would activate the save and print shortcuts, as if ctrl was still being held down. I tested it with Ctrl + various other keys, and it seems to happen no matter what the shortcut is and what action it triggers, even if I set it to “Undefined”.

Out of curiosity, I just tried it with shift and had the same problem. After creating a “Shift+some key” shortcut and triggering it using right shift, everything was typing in all caps as if shift was still being held, until I pressed left shift to “fix” it. So it appears the issue isn’t specifically related to the control key. Once again, it didn’t happen when the shortcut was defined with “Shift (Right)” or “Shift (Left)”, only with “Shift”. In the meantime, to get around the bug, I have defined redundant “Ctrl (Left)+key” and “Ctrl (Right)+key” shortcuts in place of "Ctrl+key" and have had no problems.

Lastly, if it helps, I have been able to reproduce this on both Windows 10 and 11.

@ghost ghost added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Mar 17, 2022
@jaimecbernardo
Copy link
Collaborator

That's very helpful!
I'm able to replicate this.
So this happens when you use Ctrl+another key, in the mapping, instead of Ctrl(Left) or Ctrl(Right).

Then if you use Ctrl(Right) as the actual shortcut, it won't register you've actually released the key.
This is likely what's happening.
Thanks a lot for the workaround as well.

@jaimecbernardo jaimecbernardo removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up labels Mar 17, 2022
@jaimecbernardo jaimecbernardo added the Priority-1 Bug that is high priority label Mar 17, 2022
@jaimecbernardo
Copy link
Collaborator

image

@KRTirtho
Copy link

Wow, until reading this issue I changed 5 of my keyboards and literally migrated to different OSs to avoid this issue. I started to notice that the issue isn't happening after re-installing Windows for the 3rd time (in 1 a year) and accidentally forgetting to install PowerToys.

I love PowerToys and I hate to see this horrible issue happening and there's very less info available about it. This issue shouldn't be kept in the backlog for over a year and must be looked into.

@ghnp5
Copy link

ghnp5 commented Dec 17, 2023

Came here to report the same, but I'm glad there are already a few issues raised.

I've experienced this in the past weeks, on both Windows 10 and Windows 11 with PowerToys installed, so I assumed this wouldn't be due to Windows updates, but instead due to PowerToys, since there are some functions there that handle keyboard shortcuts.

This seems to be happening with both Shift (#16487) and Ctrl (#17035), sometimes getting stuck, so I have to press them again to "resolve" this issue when that happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Priority-1 Bug that is high priority Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager Status-In progress This issue or work-item is under development
Projects
Status: No status
Development

No branches or pull requests

7 participants