summaryrefslogtreecommitdiff
path: root/gtk/gtkpasswordentry.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-15 13:45:57 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-06-15 13:48:03 -0400
commitc175a7a470fdb0a79a7025c97e5fa345155d7b1d (patch)
tree054c2fc54466949874f44cbf7a5437f9042a56a5 /gtk/gtkpasswordentry.c
parent937317e674882918d88651a72521ea144763f4a1 (diff)
downloadgtk+-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/gtkpasswordentry.c')
-rw-r--r--gtk/gtkpasswordentry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c
index 66acb6fa94..391f5076ed 100644
--- a/gtk/gtkpasswordentry.c
+++ b/gtk/gtkpasswordentry.c
@@ -378,6 +378,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass)
widget_class->size_allocate = gtk_password_entry_size_allocate;
widget_class->mnemonic_activate = gtk_password_entry_mnemonic_activate;
widget_class->grab_focus = gtk_widget_grab_focus_child;
+ widget_class->focus = gtk_widget_focus_child;
props[PROP_PLACEHOLDER_TEXT] =
g_param_spec_string ("placeholder-text",