[evolution/gnome-40] I#1495 - ETable: Ignore Shift+Click in the table header area



commit 9d3c8aacd0e9d36b2bf59318a0b715dfe745b96d
Author: Milan Crha <mcrha redhat com>
Date:   Wed May 19 19:05:55 2021 +0200

    I#1495 - ETable: Ignore Shift+Click in the table header area
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1495

 src/e-util/e-table-header-item.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/e-util/e-table-header-item.c b/src/e-util/e-table-header-item.c
index 3d6f33f23c..fb7da0f222 100644
--- a/src/e-util/e-table-header-item.c
+++ b/src/e-util/e-table-header-item.c
@@ -1995,7 +1995,9 @@ ethi_event (GnomeCanvasItem *item,
                break;
 
        case GDK_BUTTON_PRESS:
-               if (event_button > 3)
+               /* Skip also when the Shift is down without Control, which can be a misclick when doing 
multiselect */
+               if (event_button > 3 || ((event_state & GDK_SHIFT_MASK) != 0 &&
+                   (event_state & GDK_CONTROL_MASK) == 0))
                        return FALSE;
 
                convert (canvas, event_x_win, event_y_win, &x, &y);


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