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:
parent
50e51284ae
commit
2387e8c549
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue