Fix #252 with esc key press in search field or globally.