[DE] Make new search: fix opening after escape

This commit is contained in:
JuliaSvinareva 2022-03-04 17:39:59 +03:00
parent dbf08b77bc
commit 8763262670

View file

@ -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();