1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-20 06:44:44 +00:00

Merge pull request #476 from a740g/key-special-fix

Avoid monitoring special keys when the window is not in focus
This commit is contained in:
Samuel Gomes 2024-03-30 22:49:17 +05:30 committed by GitHub
commit 74116f7a31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27656,6 +27656,11 @@ void GLUT_key_special(int32 key, int32 down) {
# endif
if (vk != -1) {
# ifdef QB64_WINDOWS
if (!func__hasfocus() && !(keyheld(vk) && !down))
return;
# endif
if (down)
keydown_vk(vk);
else