Virtual-keyboard: fix text-entry in config widgets
This commit is contained in:
parent
12d4d6daa7
commit
7bb67d0402
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user