[evolution] I#1495 - ETable: Ignore Shift+Click in the table header area
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] I#1495 - ETable: Ignore Shift+Click in the table header area
- Date: Wed, 19 May 2021 17:07:43 +0000 (UTC)
commit 04e17bbf77747fe2beea744da33a7a3a2d1b3afa
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]