Ability to deselect a search field
Splitted from #5525 (closed).
Add ability to deselect the search field when user clicks outside of it or hits Enter/Esc or exits from Menu Mode (currently if user was assigned his Menu Mode on letter key and did some search, he will not be able to exits from Menu Mode with assigned key).