-
Notifications
You must be signed in to change notification settings - Fork 377
Open
Labels
Description
Describe the bug
the InputKeyboardSource.GetKeyStateForCurrentThread is often wrong and reporting keys as being Locked
when they aren't
Steps to reproduce the bug
- download attached zip and build/launch project
- observe text block saying "Unclicked"
- click the button
- see text block change from "Unclicked" to "Locked"
play around with the project and you'll notice that it's inconsistent. so if the above steps don't immediately cause a repro, just try a few more times and you should hit it
Expected behavior
the textblock to accurately reflect the state of the key
Screenshots
input.keyboard.repro.mp4
NuGet package version
Windows App SDK 1.4.3: 1.4.231115000
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
No response
Additional context
No response