Middle Click to close connection window tabs

Like in Firefox, it would be absolutely lovely to be able to close connection tabs with a middle click of the mouse. This should not be very difficult to implement at all:

// C++ Code



if(msg == WM_MBUTTONDOWN)



{



    PostMessage(hwnd, WM_CLOSE, 0, 0);



}