Add a background tab callback
Support shift-click, middle-click, and shift-ctrl-click