Merge pull request #1989 from ONLYOFFICE/fix/hints-on-mac

Fix/hints on mac
This commit is contained in:
maxkadushkin 2022-09-30 19:30:44 +03:00 committed by GitHub
commit 4b0f1c5fd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

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();
}
});

View file

@ -1227,7 +1227,7 @@ define([
Common.Utils.InternalSettings.set("de-settings-inputmode", value);
me.api.SetTextBoxInputMode(value);
value = Common.localStorage.getBool("de-settings-use-alt-key", true);
value = Common.localStorage.getBool("de-settings-use-alt-key", Common.Utils.isMac ? false : true);
Common.Utils.InternalSettings.set("de-settings-use-alt-key", value);
/** coauthoring begin **/

View file

@ -852,7 +852,7 @@ define([
Common.Utils.InternalSettings.set("pe-settings-inputmode", value);
me.api.SetTextBoxInputMode(value);
value = Common.localStorage.getBool("pe-settings-use-alt-key", true);
value = Common.localStorage.getBool("pe-settings-use-alt-key", Common.Utils.isMac ? false : true);
Common.Utils.InternalSettings.set("pe-settings-use-alt-key", value);
/** coauthoring begin **/

View file

@ -871,7 +871,7 @@ define([
var zf = (value!==null) ? parseInt(value)/100 : (this.appOptions.customization && this.appOptions.customization.zoom ? parseInt(this.appOptions.customization.zoom)/100 : 1);
this.api.asc_setZoom(zf>0 ? zf : 1);
value = Common.localStorage.getBool("sse-settings-use-alt-key", true);
value = Common.localStorage.getBool("sse-settings-use-alt-key", Common.Utils.isMac ? false : true);
Common.Utils.InternalSettings.set("sse-settings-use-alt-key", value);
/** coauthoring begin **/