try to switch back to prevfocus when closing the scratchpad