Commit 1af7cde1 authored by Luca Bacci's avatar Luca Bacci
Browse files

Propagate key events when the location entry is focused

Fixes GNOME/gtk#4880
parent b3f04413
Pipeline #393046 passed with stages
in 17 minutes and 36 seconds
......@@ -7740,6 +7740,14 @@ captured_key (GtkEventControllerKey *controller,
if (keyval == GDK_KEY_slash)
if (impl->location_entry)
GtkWidget *focus = gtk_root_get_focus (gtk_widget_get_root (GTK_WIDGET (impl)));
if (focus && gtk_widget_is_ancestor (focus, impl->location_entry))
handled = gtk_event_controller_key_forward (controller, GTK_WIDGET (impl->search_entry));
if (handled == GDK_EVENT_STOP)
operation_mode_set (impl, OPERATION_MODE_SEARCH);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment