reset search box status and fix probleme escape does not work for second time (issue6333)