[nautilus/684-quick-access-to-and-doesn-t-work-anymore] window: Revert to chaining up first



commit aaf36f86540efe0af3467fc304abcf3559b23cbd
Author: António Fernandes <antoniof gnome org>
Date:   Thu Oct 11 11:50:20 2018 +0100

    window: Revert to chaining up first
    
    Commit dae54e0c72e92a3129c4e8754bd9f3025e487c72 made the slot handle
    the key press event before chaining up.
    
    But this breaks the [~] and [/] accelerators, possibly because the slot
    handles them as type-to-search, stopping the event without chaining up.
    
    To fix this regression, revert to chaining up first. Pressing [Down] on
    search entry to focus the view won't work like this, but we are fixing
    that in the next commit.
    
    Fixes: https://gitlab.gnome.org/GNOME/nautilus/issues/684

 src/nautilus-window.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 4f7407774..7fe090987 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -2493,13 +2493,12 @@ nautilus_window_key_press_event (GtkWidget   *widget,
         }
     }
 
-    if (nautilus_window_slot_handle_event (window->active_slot, (GdkEvent *) event))
+    if (GTK_WIDGET_CLASS (nautilus_window_parent_class)->key_press_event (widget, event))
     {
         return GDK_EVENT_STOP;
     }
 
-
-    if (GTK_WIDGET_CLASS (nautilus_window_parent_class)->key_press_event (widget, event))
+    if (nautilus_window_slot_handle_event (window->active_slot, (GdkEvent *) event))
     {
         return GDK_EVENT_STOP;
     }


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