summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-27 09:57:00 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-03-27 09:57:00 -0400
commit8ea4721d1e280f65fe68a7e578972a0a8fd10500 (patch)
treef4de47bafacc92a79ba8900e034e557e30a11775
parente8a6b504f3d92b4e9407c82843c2c32c77c5b710 (diff)
downloadgtk+-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.c3
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);