Fix disconnecting from objreg for deleted objects.
Invert background-tabs setting when Shift is pressed.

Closes #175.