Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Luca Bacci
gtk
Commits
1af7cde1
Commit
1af7cde1
authored
Apr 29, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gtk/gtkfilechooserwidget.c
View file @
1af7cde1
...
...
@@ -7740,6 +7740,14 @@ captured_key (GtkEventControllerKey *controller,
if
(
keyval
==
GDK_KEY_slash
)
return
GDK_EVENT_PROPAGATE
;
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
))
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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment