[evolution/gnome-3-30] I#252 - Mail view's magic spacebar executed even when the view is inactive



commit b1561293e5b0e9698defb737b4d0307af458c883
Author: Milan Crha <mcrha redhat com>
Date:   Wed Dec 5 14:16:57 2018 +0100

    I#252 - Mail view's magic spacebar executed even when the view is inactive
    
    Closes https://gitlab.gnome.org/GNOME/evolution/issues/252

 src/modules/mail/e-mail-shell-view-private.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/modules/mail/e-mail-shell-view-private.c b/src/modules/mail/e-mail-shell-view-private.c
index 04a47c4bbd..4bd63db67a 100644
--- a/src/modules/mail/e-mail-shell-view-private.c
+++ b/src/modules/mail/e-mail-shell-view-private.c
@@ -310,6 +310,9 @@ mail_shell_window_key_press_event_cb (EMailShellView *mail_shell_view,
                                      GdkEventKey *event,
                                      EShellWindow *shell_window)
 {
+       if (!e_shell_view_is_active (E_SHELL_VIEW (mail_shell_view)))
+               return FALSE;
+
        return mail_shell_view_process_key_press_event (mail_shell_view, event, TRUE);
 }
 


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