1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-30 13:26:00 +02:00

Made middle click close tab

This commit is contained in:
Brian Fiete 2020-04-28 12:55:16 -07:00
parent 5c68049bd1
commit 607f819d90

View file

@ -107,6 +107,12 @@ namespace Beefy.widgets
public override void MouseDown(float x, float y, int32 btn, int32 btnCount) public override void MouseDown(float x, float y, int32 btn, int32 btnCount)
{ {
if (btn == 2)
{
mCloseClickedEvent();
return;
}
bool wasMouseDown = mMouseDown; bool wasMouseDown = mMouseDown;
base.MouseDown(x, y, btn, btnCount); base.MouseDown(x, y, btn, btnCount);
Activate(); Activate();