forked from AuroraMiddleware/gtk
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:
parent
e8a6b504f3
commit
8ea4721d1e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user