diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index d255e3679..c9020ccd8 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -848,6 +848,10 @@ define([ return false; case 'escape': // if (!this.leftMenu.isOpened()) return true; + var btnSearch = this.getApplication().getController('Viewport').header.btnSearch; + btnSearch.pressed && btnSearch.toggle(false); + this.leftMenu._state.isSearchOpen && (this.leftMenu._state.isSearchOpen = false); + if ( this.leftMenu.menuFile.isVisible() ) { if (Common.UI.HintManager.needCloseFileMenu()) this.leftMenu.menuFile.hide();