diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-03-27 09:57:00 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-03-27 09:57:00 -0400 |
commit | 8ea4721d1e280f65fe68a7e578972a0a8fd10500 (patch) | |
tree | f4de47bafacc92a79ba8900e034e557e30a11775 | |
parent | e8a6b504f3d92b4e9407c82843c2c32c77c5b710 (diff) | |
download | gtk+-8ea4721d1e280f65fe68a7e578972a0a8fd10500.tar.gz |
filechooser: Make / work as shortcut again
Typing / is meant to open the location entry, so
prevent search from capturing that key.
-rw-r--r-- | gtk/gtkfilechooserwidget.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 0349a4f6ca..751357d435 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -7729,6 +7729,9 @@ captured_key (GtkEventControllerKey *controller, impl->location_mode == LOCATION_MODE_FILENAME_ENTRY)) return GDK_EVENT_PROPAGATE; + if (keyval == GDK_KEY_slash) + return GDK_EVENT_PROPAGATE; + handled = gtk_event_controller_key_forward (controller, GTK_WIDGET (impl->search_entry)); if (handled == GDK_EVENT_STOP) operation_mode_set (impl, OPERATION_MODE_SEARCH); |