escape in an empty search field closes the window