From 079855bc39e3a80b81f8a1f90cafc6e5ffd71063 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Thu, 29 Sep 2022 13:19:20 +0300 Subject: [PATCH] [DE PE SSE] Fix preventing alt when alt hints are turned off --- apps/common/main/lib/controller/HintManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/HintManager.js b/apps/common/main/lib/controller/HintManager.js index 5d8dbfd9f..45963aeb7 100644 --- a/apps/common/main/lib/controller/HintManager.js +++ b/apps/common/main/lib/controller/HintManager.js @@ -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(); } });