[DE PE SSE] Fix preventing alt when alt hints are turned off

This commit is contained in:
JuliaSvinareva 2022-09-29 13:19:20 +03:00
parent 706601018c
commit 079855bc39

View file

@ -623,7 +623,7 @@ Common.UI.HintManager = new(function() {
_needShow = (Common.Utils.InternalSettings.get(_appPrefix + "settings-use-alt-key") && !e.shiftKey && e.keyCode == Common.UI.Keys.ALT &&
!Common.Utils.ModalWindow.isVisible() && _isDocReady && _arrAlphabet.length > 0 &&
!(window.PE && $('#pe-preview').is(':visible')));
if (e.altKey && e.keyCode !== 115) {
if (Common.Utils.InternalSettings.get(_appPrefix + "settings-use-alt-key") && e.altKey && e.keyCode !== 115) {
e.preventDefault();
}
});