[gtk/filechooser-keybindings] filechooser: Restore ~ and . functionality




commit 7e54a7e5a5fe831269b1948ae92771ae1178b9c1
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 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)


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