filechooser: Restore ~ and . functionality
authorMatthias Clasen <mclasen@redhat.com>
Fri, 9 Sep 2022 18:43:05 +0000 (14:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 9 Sep 2022 18:44:28 +0000 (14:44 -0400)
We'll have to keep patching up these things
until somebody rewrites the file chooser :(

Inspired by: !4970

gtk/gtkfilechooserwidget.c

index 44b4c72eb1344fca6994c328ef7eb9f0e38a9e0d..886c96c738d711796a8def3aa6240ca77b4b927b 100644 (file)
@@ -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)