filechooser: Make / work as shortcut again

Typing / is meant to open the location entry, so
prevent search from capturing that key.
This commit is contained in:
Matthias Clasen 2021-03-27 09:57:00 -04:00
parent e8a6b504f3
commit 8ea4721d1e

View File

@ -7729,6 +7729,9 @@ captured_key (GtkEventControllerKey *controller,
impl->location_mode == LOCATION_MODE_FILENAME_ENTRY)) impl->location_mode == LOCATION_MODE_FILENAME_ENTRY))
return GDK_EVENT_PROPAGATE; 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)); handled = gtk_event_controller_key_forward (controller, GTK_WIDGET (impl->search_entry));
if (handled == GDK_EVENT_STOP) if (handled == GDK_EVENT_STOP)
operation_mode_set (impl, OPERATION_MODE_SEARCH); operation_mode_set (impl, OPERATION_MODE_SEARCH);