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

When TreatModifiersAsKeys = false, holding down shift and pressing a numpad key the key will be stuck as being held down #2

Open
DavidFidge opened this issue Dec 21, 2021 · 1 comment

Comments

@DavidFidge
Copy link
Owner

Numpads can provide a functionality where if the user holds down shift and presses a numpad key then it will perform the alternative function on that key. E.g. Numpad4 turns into the left arrow key, Numpad1 turns into the end key etc.

When holding down shift pressing and holding one of these keys, then releasing shift, then releasing the key, the key stays detected as being down.

@DavidFidge
Copy link
Owner Author

DavidFidge commented Dec 21, 2021

This appears to be a bug in MonoGame itself. The key is still in a pressed state from MonoGame's KeyboardState.GetPressedKeys().

The workaround is to press the alternative key in and out, or hold down shift, press the numpad key and release the numpad key before releasing shift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant