13
0

Virtual-keyboard: fix text-entry in config widgets

This commit is contained in:
Robin Gareus 2019-10-25 21:54:16 +02:00
parent 12d4d6daa7
commit 7bb67d0402
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -379,8 +379,6 @@ VirtualKeyboardWindow::on_unmap ()
bool
VirtualKeyboardWindow::on_key_press_event (GdkEventKey* ev)
{
_piano.grab_focus ();
/* try propagate unmodified events first */
if ((ev->state & 0xf) == 0) {
if (gtk_window_propagate_key_event (gobj(), ev)) {
@ -388,6 +386,8 @@ VirtualKeyboardWindow::on_key_press_event (GdkEventKey* ev)
}
}
_piano.grab_focus ();
/* handle up/down */
if (ev->type == GDK_KEY_PRESS) {
if (ev->keyval == GDK_KEY_Left) {