main: Focus the search entry when the popover disappears