Merge pull request #1990 from ONLYOFFICE/fix/alt-hints
[DE PE SSE] Change variable name to reset Use Alt Key setting
This commit is contained in:
commit
527633324b
|
@ -620,10 +620,10 @@ Common.UI.HintManager = new(function() {
|
|||
}
|
||||
}
|
||||
|
||||
_needShow = (Common.Utils.InternalSettings.get(_appPrefix + "settings-use-alt-key") && !e.shiftKey && e.keyCode == Common.UI.Keys.ALT &&
|
||||
_needShow = (Common.Utils.InternalSettings.get(_appPrefix + "settings-show-alt-hints") && !e.shiftKey && e.keyCode == Common.UI.Keys.ALT &&
|
||||
!Common.Utils.ModalWindow.isVisible() && _isDocReady && _arrAlphabet.length > 0 &&
|
||||
!(window.PE && $('#pe-preview').is(':visible')));
|
||||
if (Common.Utils.InternalSettings.get(_appPrefix + "settings-use-alt-key") && e.altKey && e.keyCode !== 115) {
|
||||
if (Common.Utils.InternalSettings.get(_appPrefix + "settings-show-alt-hints") && e.altKey && e.keyCode !== 115) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1227,8 +1227,8 @@ define([
|
|||
Common.Utils.InternalSettings.set("de-settings-inputmode", value);
|
||||
me.api.SetTextBoxInputMode(value);
|
||||
|
||||
value = Common.localStorage.getBool("de-settings-use-alt-key", Common.Utils.isMac ? false : true);
|
||||
Common.Utils.InternalSettings.set("de-settings-use-alt-key", value);
|
||||
value = Common.localStorage.getBool("de-settings-show-alt-hints", Common.Utils.isMac ? false : true);
|
||||
Common.Utils.InternalSettings.set("de-settings-show-alt-hints", value);
|
||||
|
||||
/** coauthoring begin **/
|
||||
me._state.fastCoauth = Common.Utils.InternalSettings.get("de-settings-coauthmode");
|
||||
|
|
|
@ -790,7 +790,7 @@ define([
|
|||
updateSettings: function() {
|
||||
this.chInputMode.setValue(Common.Utils.InternalSettings.get("de-settings-inputmode"));
|
||||
|
||||
this.chUseAltKey.setValue(Common.Utils.InternalSettings.get("de-settings-use-alt-key"));
|
||||
this.chUseAltKey.setValue(Common.Utils.InternalSettings.get("de-settings-show-alt-hints"));
|
||||
|
||||
var value = Common.Utils.InternalSettings.get("de-settings-zoom");
|
||||
value = (value!==null) ? parseInt(value) : (this.mode.customization && this.mode.customization.zoom ? parseInt(this.mode.customization.zoom) : 100);
|
||||
|
@ -874,8 +874,8 @@ define([
|
|||
if (!this.chDarkMode.isDisabled() && (this.chDarkMode.isChecked() !== Common.UI.Themes.isContentThemeDark()))
|
||||
Common.UI.Themes.toggleContentTheme();
|
||||
Common.localStorage.setItem("de-settings-inputmode", this.chInputMode.isChecked() ? 1 : 0);
|
||||
Common.localStorage.setItem("de-settings-use-alt-key", this.chUseAltKey.isChecked() ? 1 : 0);
|
||||
Common.Utils.InternalSettings.set("de-settings-use-alt-key", Common.localStorage.getBool("de-settings-use-alt-key"));
|
||||
Common.localStorage.setItem("de-settings-show-alt-hints", this.chUseAltKey.isChecked() ? 1 : 0);
|
||||
Common.Utils.InternalSettings.set("de-settings-show-alt-hints", Common.localStorage.getBool("de-settings-show-alt-hints"));
|
||||
Common.localStorage.setItem("de-settings-zoom", this.cmbZoom.getValue());
|
||||
Common.Utils.InternalSettings.set("de-settings-zoom", Common.localStorage.getItem("de-settings-zoom"));
|
||||
|
||||
|
|
|
@ -852,8 +852,8 @@ define([
|
|||
Common.Utils.InternalSettings.set("pe-settings-inputmode", value);
|
||||
me.api.SetTextBoxInputMode(value);
|
||||
|
||||
value = Common.localStorage.getBool("pe-settings-use-alt-key", Common.Utils.isMac ? false : true);
|
||||
Common.Utils.InternalSettings.set("pe-settings-use-alt-key", value);
|
||||
value = Common.localStorage.getBool("pe-settings-show-alt-hints", Common.Utils.isMac ? false : true);
|
||||
Common.Utils.InternalSettings.set("pe-settings-show-alt-hints", value);
|
||||
|
||||
/** coauthoring begin **/
|
||||
me._state.fastCoauth = Common.Utils.InternalSettings.get("pe-settings-coauthmode");
|
||||
|
|
|
@ -627,7 +627,7 @@ define([
|
|||
|
||||
this.chInputMode.setValue(Common.Utils.InternalSettings.get("pe-settings-inputmode"));
|
||||
|
||||
this.chUseAltKey.setValue(Common.Utils.InternalSettings.get("pe-settings-use-alt-key"));
|
||||
this.chUseAltKey.setValue(Common.Utils.InternalSettings.get("pe-settings-show-alt-hints"));
|
||||
|
||||
var value = Common.Utils.InternalSettings.get("pe-settings-zoom");
|
||||
value = (value!==null) ? parseInt(value) : (this.mode.customization && this.mode.customization.zoom ? parseInt(this.mode.customization.zoom) : -1);
|
||||
|
@ -691,8 +691,8 @@ define([
|
|||
Common.localStorage.setBool("pe-spellcheck-ignore-numbers-words", this.chIgnoreNumbers.isChecked());
|
||||
}
|
||||
Common.localStorage.setItem("pe-settings-inputmode", this.chInputMode.isChecked() ? 1 : 0);
|
||||
Common.localStorage.setItem("pe-settings-use-alt-key", this.chUseAltKey.isChecked() ? 1 : 0);
|
||||
Common.Utils.InternalSettings.set("pe-settings-use-alt-key", Common.localStorage.getBool("pe-settings-use-alt-key"));
|
||||
Common.localStorage.setItem("pe-settings-show-alt-hints", this.chUseAltKey.isChecked() ? 1 : 0);
|
||||
Common.Utils.InternalSettings.set("pe-settings-show-alt-hints", Common.localStorage.getBool("pe-settings-show-alt-hints"));
|
||||
Common.localStorage.setItem("pe-settings-zoom", this.cmbZoom.getValue());
|
||||
Common.Utils.InternalSettings.set("pe-settings-zoom", Common.localStorage.getItem("pe-settings-zoom"));
|
||||
/** coauthoring begin **/
|
||||
|
|
|
@ -871,8 +871,8 @@ 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", Common.Utils.isMac ? false : true);
|
||||
Common.Utils.InternalSettings.set("sse-settings-use-alt-key", value);
|
||||
value = Common.localStorage.getBool("sse-settings-show-alt-hints", Common.Utils.isMac ? false : true);
|
||||
Common.Utils.InternalSettings.set("sse-settings-show-alt-hints", value);
|
||||
|
||||
/** coauthoring begin **/
|
||||
this.isLiveCommenting = Common.localStorage.getBool("sse-settings-livecomment", true);
|
||||
|
|
|
@ -798,7 +798,7 @@ define([
|
|||
value = (value!==null) ? parseInt(value) : (this.mode.customization && this.mode.customization.zoom ? parseInt(this.mode.customization.zoom) : 100);
|
||||
var item = this.cmbZoom.store.findWhere({value: value});
|
||||
this.cmbZoom.setValue(item ? parseInt(item.get('value')) : (value>0 ? value+'%' : 100));
|
||||
this.chUseAltKey.setValue(Common.Utils.InternalSettings.get("sse-settings-use-alt-key"));
|
||||
this.chUseAltKey.setValue(Common.Utils.InternalSettings.get("sse-settings-show-alt-hints"));
|
||||
|
||||
/** coauthoring begin **/
|
||||
this.chLiveComment.setValue(Common.Utils.InternalSettings.get("sse-settings-livecomment"));
|
||||
|
@ -930,8 +930,8 @@ define([
|
|||
|
||||
applySettings: function() {
|
||||
Common.UI.Themes.setTheme(this.cmbTheme.getValue());
|
||||
Common.localStorage.setItem("sse-settings-use-alt-key", this.chUseAltKey.isChecked() ? 1 : 0);
|
||||
Common.Utils.InternalSettings.set("sse-settings-use-alt-key", Common.localStorage.getBool("sse-settings-use-alt-key"));
|
||||
Common.localStorage.setItem("sse-settings-show-alt-hints", this.chUseAltKey.isChecked() ? 1 : 0);
|
||||
Common.Utils.InternalSettings.set("sse-settings-show-alt-hints", Common.localStorage.getBool("sse-settings-show-alt-hints"));
|
||||
Common.localStorage.setItem("sse-settings-zoom", this.cmbZoom.getValue());
|
||||
Common.Utils.InternalSettings.set("sse-settings-zoom", Common.localStorage.getItem("sse-settings-zoom"));
|
||||
/** coauthoring begin **/
|
||||
|
|
Loading…
Reference in a new issue