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
PowerToys sends a grave accent "`" before the first thing I type #8083
Comments
I guess you typed youtube in chrome. How's that to do with PowerToys? |
This only happens when PowerToys is running, I should've explained it better |
That's strange. |
/cc @enricogior |
I just found someone else with this issue, but it's solved. #3714 |
going to go through a few permutations here so please deal with us so we can see what could be the offending module.
|
|
notes: i tried this with a UK keyboard installed and couldn't repo the issue. BUT i failed at reading the repo steps E2E, i also didn't reboot. |
even with a reboot, i can't reproduce this.
@cillbill74 can you take a screenshot of your language setting page? Would love to hook a conference call / debugger into this to maybe dive in why if you'd be up for that. |
This may not help, but I think I also have the same problem |
I need a way to repro the issue. More you can tell me about your set up or have a teams call with me, better chance of seeing the root cause. |
Just found something. If I try to map the grave key on the UK layout it says I'm pressing "`", but on the Extended layout it says I'm pressing "VK 223"? It seems like PowerToys has trouble with modifier keys as someone else had this problem with the "US International" layout's apostrophe modifier key. #3714 Edit: I disabled "VK 223" in Keyboard Manager but I still have this problem so scrap that idea |
Ok, have to see why I can't see the extended keyboard then for the UK. |
Yeah, not really. I set my keyboard layout.language to "English / US" because I was really fed up with these "dead keys", so now I don't have 'em any more. |
I still have the problem |
@Jay-o-Way, still possible to repro. |
As was noted by Davide above, I report and describe this issue in ticket 19014. Please read the comment I just posted on that, as I have found the culprit and am able to reproduce 100% of the time following the steps described. Note: I use United States-International keyboard layout in Windows, but this issue should be the same for all layouts that use/feature "dead keys". |
@SeraphimaZykova any clue? |
Any news? Since I found how to reproduce the bug, shared detailed explanation of the bug and steps to reproduce as well as a video of it. Can you guys now find the issue with the code and solve it? I'm happy to assist if necessary, let me know if you need anything else. Thanks! |
I tried and took a look at the code and searched for the decimal, hexadecimal and vk values, but didn't find the cause. But then I'm not the one who built FancyZones, Seraphima is. Confirming this is still happening in v0.60 and that it's the activation of FancyZones. |
Not sure if this was the confirmation or a question, but I can confirm this is still happening in v0.60 upon activation of FancyZones. |
Can repro as in #19014 with a US-International layout! |
I've hunted this down to the use of
This is pretty weird, so this function can change the state of the keyboard. Let's see what we can do here. https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-tounicodeex#remarks
|
What a weird detail. Anyway, it looks like sending the bit 2 of wFlags on seems to have fixed it. This is a recently introduced detail, but good thing it was added.
|
Committing a fix soon. |
@markvvaals , thanks a lot for the investigation, we've been able to reproduce it consistently and hunt down this weird bug thanks to you. |
@jaimecbernardo you're welcome, glad to be of help. |
ℹ Computer information
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
Whatever I type shouldn't have a grave accent on it, or before the first letter.
❌ Actual result
Whenever PowerToys is running, typing into a text field inserts a grave accent before the first letter.
For example "chrome" or "youtube" becomes "`chrome" or "ỳoutube"
📷 Screenshots
The text was updated successfully, but these errors were encountered: