[DE PE SSE] Fix bug 53716

This commit is contained in:
JuliaSvinareva 2021-11-15 15:47:39 +03:00
parent 45538869ea
commit a05d2d9aba

View file

@ -114,7 +114,8 @@ Common.UI.HintManager = new(function() {
_inputLetters = '', _inputLetters = '',
_isComplete = false, _isComplete = false,
_isLockedKeyEvents = false, _isLockedKeyEvents = false,
_inputTimer; _inputTimer,
_isDocReady = false;
var _api; var _api;
@ -370,6 +371,7 @@ Common.UI.HintManager = new(function() {
'app:ready': function (mode) { 'app:ready': function (mode) {
var lang = mode.lang ? mode.lang.toLowerCase() : 'en'; var lang = mode.lang ? mode.lang.toLowerCase() : 'en';
_getAlphabetLetters(lang); _getAlphabetLetters(lang);
_isDocReady = true;
}, },
'hints:clear': _clearHints, 'hints:clear': _clearHints,
'window:resize': _clearHints 'window:resize': _clearHints
@ -490,12 +492,13 @@ Common.UI.HintManager = new(function() {
} }
} }
_needShow = (e.keyCode == Common.UI.Keys.ALT && !Common.Utils.ModalWindow.isVisible()); _needShow = (e.keyCode == Common.UI.Keys.ALT && !Common.Utils.ModalWindow.isVisible() && _isDocReady);
}); });
}; };
var _getAlphabetLetters = function (lng) { var _getAlphabetLetters = function (lng) {
Common.Utils.loadConfig('../../common/main/resources/alphabetletters/alphabetletters.json', function (langsJson) { Common.Utils.loadConfig('../../common/main/resources/alphabetletters/alphabetletters.json', function (langsJson) {
_arrEnAlphabet = langsJson['en'];
var _setAlphabet = function (lang) { var _setAlphabet = function (lang) {
_lang = lang; _lang = lang;
_arrAlphabet = langsJson[lang]; _arrAlphabet = langsJson[lang];