summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-27 09:53:43 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-03-27 09:53:43 -0400
commit06ab8f2167955283ab43b6d2b0089f0f1f41dda0 (patch)
tree676d2bb18aacb290fe05970bcea298f5f8c4d768
parentb5558f3e9784eccc762ed0b4c12a385f4d7b1c3c (diff)
downloadgtk+-06ab8f2167955283ab43b6d2b0089f0f1f41dda0.tar.gz
filechooser: Make Ctrl-L work again
Prevent search from preempting the Ctrl-L shortcut that is meant to show the location entry.
-rw-r--r--gtk/gtkfilechooserwidget.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 6f612c1c63..a666d55ca1 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -7719,7 +7719,10 @@ captured_key (GtkEventControllerKey *controller,
GtkFileChooserWidget *impl = data;
gboolean handled;
- if (impl->operation_mode == OPERATION_MODE_SEARCH)
+ if (impl->operation_mode == OPERATION_MODE_SEARCH ||
+ impl->operation_mode == OPERATION_MODE_ENTER_LOCATION ||
+ (impl->operation_mode == OPERATION_MODE_BROWSE &&
+ impl->location_mode == LOCATION_MODE_FILENAME_ENTRY))
return GDK_EVENT_PROPAGATE;
handled = gtk_event_controller_key_forward (controller, GTK_WIDGET (impl->search_entry));