Close tab on middle-click

Also make sure we only fire regular commands when left-click is used,
not for any buttons
Shorten function name to enableTabMiddleClick