Emit keyboard events from the top-level window when no control has the focus.

[GB.GTK]
* BUG: Emit keyboard events from the top-level window when no control has the focus.

[GB.GTK3]
* BUG: Emit keyboard events from the top-level window when no control has the focus.
This commit is contained in:
gambas 2020-12-19 22:26:09 +01:00
parent 50e51284ae
commit 2387e8c549

View file

@ -822,14 +822,14 @@ __FOUND_WIDGET:
if (event->key.keyval)
gKey::_last_key_press = event->key.keyval;
send_to_window = false; //control->isWindow();
send_to_window = control->isTopLevel();
goto __HANDLE_EVENT;
case GDK_KEY_RELEASE:
if (event->key.keyval)
gKey::_last_key_release = event->key.keyval;
send_to_window = false; //control->isWindow();
send_to_window = control->isTopLevel();
goto __HANDLE_EVENT;
default: