Merge pull request #1370 from ONLYOFFICE/fix/fix-bugs

Fix/fix bugs
This commit is contained in:
Julia Radzhabova 2021-11-30 17:06:32 +03:00 committed by GitHub
commit 3e18d5191c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,7 +171,7 @@ Common.UI.HintManager = new(function() {
var _hideHints = function() {
_hintVisible = false;
_currentHints && _currentHints.forEach(function(item) {
item.hide()
item.remove()
});
clearInterval(_inputTimer);
};
@ -531,7 +531,11 @@ Common.UI.HintManager = new(function() {
}
}
_needShow = (e.keyCode == Common.UI.Keys.ALT && (!Common.Utils.ModalWindow.isVisible()) && _isDocReady && _arrAlphabet.length > 0);
var isAlt = e.keyCode == Common.UI.Keys.ALT;
_needShow = (isAlt && !Common.Utils.ModalWindow.isVisible() && _isDocReady && _arrAlphabet.length > 0);
if (isAlt) {
e.preventDefault();
}
});
};
@ -567,6 +571,13 @@ Common.UI.HintManager = new(function() {
if (isComplete) {
_isComplete = true;
}
if ($('.hint-div').length > 0) {
$('.hint-div').remove();
}
if ($('iframe').length > 0) {
$('iframe').contents().find('.hint-div').remove();
}
};
var _isHintVisible = function () {