From eec089ef86cf82969334ff9c7c96e5ac2ff67153 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 28 Aug 2019 13:33:29 +0300 Subject: [PATCH] [SSE] Fix spellcheck --- apps/spreadsheeteditor/main/app/controller/Spellcheck.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/spreadsheeteditor/main/app/controller/Spellcheck.js b/apps/spreadsheeteditor/main/app/controller/Spellcheck.js index 4abcbbb8a..6f058827d 100644 --- a/apps/spreadsheeteditor/main/app/controller/Spellcheck.js +++ b/apps/spreadsheeteditor/main/app/controller/Spellcheck.js @@ -103,6 +103,7 @@ define([ if (this.api) { this.api.asc_nextWord(); } + Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true}); }, onDictionary: function() { @@ -172,6 +173,7 @@ define([ this.api.asc_setDefaultLanguage(lang); Common.localStorage.setItem("sse-spellcheck-locale", this.panelSpellcheck.cmbDictionaryLanguage.getValue()); } + Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true}); }, onClickChange: function (btn, e) { @@ -179,6 +181,7 @@ define([ var rec = this.panelSpellcheck.suggestionList.getSelectedRec(); rec && this.api.asc_replaceMisspelledWord(rec.get('value'), this._currentSpellObj); } + Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true}); }, onClickChangeMenu: function (menu, item) { @@ -190,12 +193,14 @@ define([ rec && this.api.asc_replaceMisspelledWord(rec.get('value'), this._currentSpellObj, true); } } + Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true}); }, onClickIgnore: function () { if (this.api) { this.api.asc_ignoreMisspelledWord(this._currentSpellObj, false) } + Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true}); }, onClickIgnoreMenu: function (menu, item) { @@ -206,6 +211,7 @@ define([ this.api.asc_ignoreMisspelledWord(this._currentSpellObj, true); } } + Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true}); }, onSpellCheckVariantsFound: function (property) {