Fix Quicksearch eating keypresses it didn't handle.
authorColin Leroy <colin@colino.net>
Thu, 27 Sep 2018 06:55:10 +0000 (08:55 +0200)
committerColin Leroy <colin@colino.net>
Thu, 27 Sep 2018 06:55:10 +0000 (08:55 +0200)
src/mainwindow.c

index 5259a5d..40fe077 100644 (file)
@@ -1369,9 +1369,11 @@ static gboolean mainwindow_key_pressed (GtkWidget *widget, GdkEventKey *event,
        {
                GtkWidget *entry =
                        quicksearch_get_entry(mainwin->summaryview->quicksearch);
-               gboolean dummy;
-               g_signal_emit_by_name(entry, "key-press-event", event, &dummy);
-               return TRUE;
+               gboolean handled;
+               g_signal_emit_by_name(entry, "key-press-event", event, &handled);
+               if (handled) {
+                       return TRUE;
+               }
        }
 
        switch (event->keyval) {