From 7e54a7e5a5fe831269b1948ae92771ae1178b9c1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 9 Sep 2022 14:43:05 -0400 Subject: [PATCH] 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) -- 2.30.2