replace hardware_keycode hack to stop focus cycle
This commit is contained in:
parent
ecab4a6dba
commit
742ed9c6c4
|
@ -597,8 +597,7 @@ gboolean entry_key_press_cb(GtkEntry *entry, GdkEventKey *event, search_panel_in
|
||||||
synthesize_keypress(GTK_WIDGET(entry), GDK_KEY_Up);
|
synthesize_keypress(GTK_WIDGET(entry), GDK_KEY_Up);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else if (event->keyval == GDK_KEY_Down) {
|
} else if (event->keyval == GDK_KEY_Down) {
|
||||||
// this stops the down key from leaving the GtkEntry...
|
return TRUE; // no focus cycling
|
||||||
event->hardware_keycode = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue