diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-02-23 14:21:43 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-02-23 16:46:18 +0100 |
commit | fe8042968db4bd6e9c10bc41e62aae0aa7441a2f (patch) | |
tree | 2656d07952183fd71442f235255d6f78d512e82e | |
parent | e42af98f251e7fb8d7976c4deff98f31e10d49fc (diff) | |
download | nautilus-fe8042968db4bd6e9c10bc41e62aae0aa7441a2f.tar.gz |
query-editor: make search popover keyboard navigable
We need to move the focus back and forth from it.
https://bugzilla.gnome.org/show_bug.cgi?id=762136
-rw-r--r-- | src/nautilus-query-editor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c index 403929e47..0421fb96b 100644 --- a/src/nautilus-query-editor.c +++ b/src/nautilus-query-editor.c @@ -576,6 +576,9 @@ setup_widgets (NautilusQueryEditor *editor) /* setup the search popover */ priv->popover = nautilus_search_popover_new (); + g_signal_connect (priv->popover, "show", (GCallback) gtk_widget_grab_focus, NULL); + g_signal_connect_swapped (priv->popover, "closed", (GCallback) gtk_widget_grab_focus, editor); + g_object_bind_property (editor, "query", priv->popover, "query", G_BINDING_DEFAULT); |