diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-06-15 13:45:57 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-06-15 13:48:03 -0400 |
commit | c175a7a470fdb0a79a7025c97e5fa345155d7b1d (patch) | |
tree | 054c2fc54466949874f44cbf7a5437f9042a56a5 /gtk/gtksearchentry.c | |
parent | 937317e674882918d88651a72521ea144763f4a1 (diff) | |
download | gtk+-c175a7a470fdb0a79a7025c97e5fa345155d7b1d.tar.gz |
searchentry: Fix keynav
Shift-Tabbing was getting stuck in GtkSearchEntry and
GtkPasswordEntry, since they grab the focus to a child
of theirs. Copy the same fix that we are already using
in GtkEntry.
Fixes: #2842
Diffstat (limited to 'gtk/gtksearchentry.c')
-rw-r--r-- | gtk/gtksearchentry.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c index 0ccf639e87..d203f9d1a9 100644 --- a/gtk/gtksearchentry.c +++ b/gtk/gtksearchentry.c @@ -40,6 +40,7 @@ #include "gtkmarshalers.h" #include "gtkstylecontext.h" #include "gtkeventcontrollerkey.h" +#include "gtkwidgetprivate.h" #include "a11y/gtksearchentryaccessible.h" @@ -249,6 +250,7 @@ gtk_search_entry_class_init (GtkSearchEntryClass *klass) object_class->set_property = gtk_search_entry_set_property; widget_class->grab_focus = gtk_search_entry_grab_focus; + widget_class->focus = gtk_widget_focus_child; widget_class->mnemonic_activate = gtk_search_entry_mnemonic_activate; klass->stop_search = gtk_search_entry_stop_search; |