mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-20 03:14:45 +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:
commit
74116f7a31
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue