Merge pull request #1989 from ONLYOFFICE/fix/hints-on-mac
Fix/hints on mac
This commit is contained in:
commit
4b0f1c5fd4
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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 **/
|
||||
|
|
|
@ -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 **/
|
||||
|
|
|
@ -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 **/
|
||||
|
|
Loading…
Reference in a new issue