Remove focus from scale tools when window is hidden.