[gtk/gtk-4-6: 5/11] filechooser: Restore ~ and . functionality




commit 7aab4acecc48df639cc9aa5e78c8a04ace4af56a
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Sep 9 14:43:05 2022 -0400

    filechooser: Restore ~ and . functionality
    
    We'll have to keep patching up these things
    until somebody rewrites the file chooser :(
    
    Inspired by: !4970

 gtk/gtkfilechooserwidget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 159f4931e0..fbc45cb6b6 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -7760,7 +7760,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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]