From: Matthias Clasen Date: Fri, 9 Sep 2022 18:43:05 +0000 (-0400) Subject: filechooser: Restore ~ and . functionality X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~2^2~16^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7e54a7e5a5fe831269b1948ae92771ae1178b9c1;p=gtk4.git filechooser: Restore ~ and . functionality We'll have to keep patching up these things until somebody rewrites the file chooser :( Inspired by: !4970 --- diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 44b4c72eb1..886c96c738 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -7758,7 +7758,7 @@ captured_key (GtkEventControllerKey *controller, impl->location_mode == LOCATION_MODE_FILENAME_ENTRY)) return GDK_EVENT_PROPAGATE; - if (keyval == GDK_KEY_slash) + if (keyval == GDK_KEY_slash || keyval == GDK_KEY_asciitilde || keyval == GDK_KEY_period) return GDK_EVENT_PROPAGATE; if (impl->location_entry)