[evolution] I#1071 - Shift+number key cannot be typed in the search field



commit b41ef76df152b93f101ddc83c2bb32798d1cba09
Author: Milan Crha <mcrha redhat com>
Date:   Fri Sep 4 08:37:52 2020 +0200

    I#1071 - Shift+number key cannot be typed in the search field
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1071

 src/mail/e-mail-browser.c                    | 2 +-
 src/modules/mail/e-mail-shell-view-private.c | 2 +-
 src/shell/e-shell-window-private.c           | 2 +-
 src/shell/e-shell-window.c                   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/mail/e-mail-browser.c b/src/mail/e-mail-browser.c
index 144026df55..131ad85183 100644
--- a/src/mail/e-mail-browser.c
+++ b/src/mail/e-mail-browser.c
@@ -466,7 +466,7 @@ mail_browser_key_press_event_cb (GtkWindow *mail_browser,
 
        mail_display = e_mail_reader_get_mail_display (E_MAIL_READER (mail_browser));
 
-       if (!event || (event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK)) != 0 ||
+       if (!event || (event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK)) != 0 ||
            event->keyval == GDK_KEY_Tab ||
            event->keyval == GDK_KEY_Return ||
            event->keyval == GDK_KEY_KP_Tab ||
diff --git a/src/modules/mail/e-mail-shell-view-private.c b/src/modules/mail/e-mail-shell-view-private.c
index f9aabc10d5..85d4f6bdfc 100644
--- a/src/modules/mail/e-mail-shell-view-private.c
+++ b/src/modules/mail/e-mail-shell-view-private.c
@@ -277,7 +277,7 @@ mail_shell_view_process_key_press_event (EMailShellView *mail_shell_view,
        mail_view = e_mail_shell_content_get_mail_view (E_MAIL_SHELL_CONTENT (shell_content));
        mail_display = e_mail_reader_get_mail_display (E_MAIL_READER (mail_view));
 
-       if (!event || (event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK)) != 0)
+       if (!event || (event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK)) != 0)
                return event && e_mail_display_need_key_event (mail_display, event);
 
        if (e_shell_window_get_need_input (shell_window, event))
diff --git a/src/shell/e-shell-window-private.c b/src/shell/e-shell-window-private.c
index 059e7b57c6..8eb50413f9 100644
--- a/src/shell/e-shell-window-private.c
+++ b/src/shell/e-shell-window-private.c
@@ -352,7 +352,7 @@ e_shell_window_key_press_event_cb (GtkWidget *widget,
 {
        g_return_val_if_fail (E_IS_SHELL_WINDOW (widget), FALSE);
 
-       if ((event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK)) != 0 ||
+       if ((event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK)) != 0 ||
            event->keyval == GDK_KEY_Tab ||
            event->keyval == GDK_KEY_Return ||
            event->keyval == GDK_KEY_Escape ||
diff --git a/src/shell/e-shell-window.c b/src/shell/e-shell-window.c
index 4194902949..ab61ff3eb9 100644
--- a/src/shell/e-shell-window.c
+++ b/src/shell/e-shell-window.c
@@ -2147,7 +2147,7 @@ e_shell_window_get_need_input (EShellWindow *shell_window,
        g_return_val_if_fail (E_IS_SHELL_WINDOW (shell_window), FALSE);
        g_return_val_if_fail (event != NULL, FALSE);
 
-       if ((event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK)) != 0)
+       if ((event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK)) != 0)
                return FALSE;
 
        if (event->keyval == GDK_KEY_F1 ||


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