summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2021-05-19 19:05:55 +0200
committerMilan Crha <mcrha@redhat.com>2021-05-19 19:08:21 +0200
commit9d3c8aacd0e9d36b2bf59318a0b715dfe745b96d (patch)
treedfcfca90e338bd95cd80fba99c7bf905f4cfd5ca
parent4b06d43c02c1bca219f1b35765e544d1e9280bad (diff)
downloadevolution-9d3c8aacd0e9d36b2bf59318a0b715dfe745b96d.tar.gz
I#1495 - ETable: Ignore Shift+Click in the table header area
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1495
-rw-r--r--src/e-util/e-table-header-item.c4
1 files changed, 3 insertions, 1 deletions
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);