clears search when window loses focus #122