There should be infrastructure for escape action in editor. Any action can register to this infrastructure and it received a priority. When user press escape in editor, action with highest priority will receive an information.
Example: SearchBar could be closed by pressing escape in editor. Now it is closed by escape in searchbar.
Plan to 7.3