fix esc key behavior in edit mode and search field