file chooser: Add Ctrl-F as search shortcut
authorMatthias Clasen <mclasen@redhat.com>
Mon, 29 Jun 2015 15:40:14 +0000 (08:40 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jul 2015 04:29:25 +0000 (00:29 -0400)
This is what nautilus uses, and is more discoverable than the
somewhat easter-egg Alt-S, which is still supported.

gtk/gtkfilechooserwidget.c

index c944257f6b0a6cd5d9a2704e381b424a55146762..cb304faf617244ee8e18c25fc6d3703b6904dfe8 100644 (file)
@@ -7696,6 +7696,10 @@ gtk_file_chooser_widget_class_init (GtkFileChooserWidgetClass *class)
                                 GDK_KEY_s, GDK_MOD1_MASK,
                                 "search-shortcut",
                                 0);
+  gtk_binding_entry_add_signal (binding_set,
+                                GDK_KEY_f, GDK_CONTROL_MASK,
+                                "search-shortcut",
+                                0);
   gtk_binding_entry_add_signal (binding_set,
                                 GDK_KEY_r, GDK_MOD1_MASK,
                                 "recent-shortcut",