diff --git a/apps/common/main/lib/component/HintManager.js b/apps/common/main/lib/component/HintManager.js index 764ef8076..b3aab207a 100644 --- a/apps/common/main/lib/component/HintManager.js +++ b/apps/common/main/lib/component/HintManager.js @@ -149,6 +149,9 @@ Common.UI.HintManager = new(function() { var _showHints = function () { _inputLetters = ''; + if (_currentLevel === 0) { + Common.NotificationCenter.trigger('toolbar:collapse'); + } if (_currentHints.length === 0 || ($('#file-menu-panel').is(':visible' || _isEditDiagram) && _currentLevel === 1)) { _getHints(); } diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index eb5115ddb..c90c8baf7 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -231,6 +231,9 @@ define([ // Common.NotificationCenter.on('menu:afterkeydown', _.bind(this.onAfterKeydownMenu, this)); Common.NotificationCenter.on('style:commitsave', _.bind(this.onSaveStyle, this)); Common.NotificationCenter.on('style:commitchange', _.bind(this.onUpdateStyle, this)); + Common.NotificationCenter.on('toolbar:collapse', _.bind(function () { + this.toolbar.collapse(); + }, this)); }, onLaunch: function() { diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index adbede1ab..43ba27827 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -177,6 +177,9 @@ define([ } } }); + Common.NotificationCenter.on('toolbar:collapse', _.bind(function () { + this.toolbar.collapse(); + }, this)); var me = this; diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 5f0954591..898621c8e 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -149,6 +149,9 @@ define([ }); Common.NotificationCenter.on('page:settings', _.bind(this.onApiSheetChanged, this)); Common.NotificationCenter.on('formula:settings', _.bind(this.applyFormulaSettings, this)); + Common.NotificationCenter.on('toolbar:collapse', _.bind(function () { + this.toolbar.collapse(); + }, this)); this.editMode = true; this._isAddingShape = false;