From dc483b234253c3a72e006e0e15d81c73b8b2a511 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Fri, 16 Mar 2018 20:31:16 -0400 Subject: Remove shift+click to close tab binding It is an odd binding that conflicts with typical behavior where shift click selects multiple items and there is already the middle click shortcut to close tabs quickly. Closes #918 --- src/fe-gtk/maingui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index 7ac65c5a..efeaaaeb 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -1585,8 +1585,8 @@ mg_create_tabmenu (session *sess, GdkEventButton *event, chan *ch) static gboolean mg_tab_contextmenu_cb (chanview *cv, chan *ch, int tag, gpointer ud, GdkEventButton *event) { - /* middle-click or shift-click to close a tab */ - if (((prefs.hex_gui_tab_middleclose && event->button == 2) || (event->button == 1 && event->state & STATE_SHIFT)) + /* middle-click to close a tab */ + if (((prefs.hex_gui_tab_middleclose && event->button == 2)) && event->type == GDK_BUTTON_PRESS) { mg_xbutton_cb (cv, ch, tag, ud); -- cgit 1.4.1