Allow calling 'WAIT' alone during a keyboard event handler.

[GB.QT4]
* BUG: Allow calling 'WAIT' alone during a keyboard event handler.

[GB.QT5]
* BUG: Allow calling 'WAIT' alone during a keyboard event handler.
This commit is contained in:
gambas 2022-04-12 19:58:15 +02:00
parent 9d989a4ddf
commit 97d862a2d0
2 changed files with 2 additions and 2 deletions

View file

@ -1044,7 +1044,7 @@ static void hook_wait(int duration)
return;
}
if (CKEY_is_valid())
if (CKEY_is_valid() && duration != -1)
{
if (!_warning)
{

View file

@ -808,7 +808,7 @@ static void hook_wait(int duration)
return;
}
if (CKEY_is_valid())
if (CKEY_is_valid() && duration != -1)
{
if (!_warning)
{