[libhandy] preferences-window: Disable type-to-search for subpages



commit d20aa6a8f086dcb82353ed22ef10dbd09dd3ee7f
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Jul 29 14:05:00 2020 +0500

    preferences-window: Disable type-to-search for subpages
    
    Signed-off-by: Alexander Mikhaylenko <alexm gnome org>

 src/hdy-preferences-window.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/hdy-preferences-window.c b/src/hdy-preferences-window.c
index 81bb7ba0..987e8b7f 100644
--- a/src/hdy-preferences-window.c
+++ b/src/hdy-preferences-window.c
@@ -210,6 +210,9 @@ key_press_event_cb (GtkWidget            *sender,
   guint keyval;
   GdkModifierType state;
 
+  if (priv->subpage)
+    return GDK_EVENT_PROPAGATE;
+
   gdk_event_get_keyval (event, &keyval);
   gdk_event_get_state (event, &state);
 


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