mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-13 22:53:45 +01:00
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
This commit is contained in:
parent
28a3d42ad1
commit
dc483b2342
@ -1585,8 +1585,8 @@ mg_create_tabmenu (session *sess, GdkEventButton *event, chan *ch)
|
|||||||
static gboolean
|
static gboolean
|
||||||
mg_tab_contextmenu_cb (chanview *cv, chan *ch, int tag, gpointer ud, GdkEventButton *event)
|
mg_tab_contextmenu_cb (chanview *cv, chan *ch, int tag, gpointer ud, GdkEventButton *event)
|
||||||
{
|
{
|
||||||
/* middle-click or shift-click to close a tab */
|
/* middle-click to close a tab */
|
||||||
if (((prefs.hex_gui_tab_middleclose && event->button == 2) || (event->button == 1 && event->state & STATE_SHIFT))
|
if (((prefs.hex_gui_tab_middleclose && event->button == 2))
|
||||||
&& event->type == GDK_BUTTON_PRESS)
|
&& event->type == GDK_BUTTON_PRESS)
|
||||||
{
|
{
|
||||||
mg_xbutton_cb (cv, ch, tag, ud);
|
mg_xbutton_cb (cv, ch, tag, ud);
|
||||||
|
Loading…
Reference in New Issue
Block a user