This commit is contained in:
Vanessa 2023-09-18 17:23:16 +08:00
parent 766e7ebc6b
commit f2f292c5fa
8 changed files with 3 additions and 8 deletions

View file

@ -1081,7 +1081,7 @@ export const windowKeyDown = (app: App, event: KeyboardEvent) => {
commandPanel(app);
return;
}
if (matchHotKey(window.siyuan.config.keymap.general.editMode.custom, event)) {
if (matchHotKey(window.siyuan.config.keymap.general.editReadonly.custom, event)) {
event.preventDefault();
editor.setReadonly(!window.siyuan.config.editor.readOnly);
return;

View file

@ -43,7 +43,7 @@ export const editor = {
<label class="fn__flex b3-label">
<div class="fn__flex-1">
${window.siyuan.languages.editReadonly}
<code class=\"fn__code\">${updateHotkeyTip(window.siyuan.config.keymap.general.editMode.custom)}</code>
<code class="fn__code">${updateHotkeyTip(window.siyuan.config.keymap.general.editReadonly.custom)}</code>
<div class="b3-label__text">${window.siyuan.languages.editReadonlyTip}</div>
</div>
<span class="fn__space"></span>

View file

@ -220,7 +220,7 @@ export abstract class Constants {
general: {
mainMenu: {default: "⌥\\", custom: "⌥\\"},
commandPanel: {default: "⌥⇧P", custom: "⌥⇧P"},
editMode: {default: "⇧⌘G", custom: "⇧⌘G"},
editReadonly: {default: "⇧⌘G", custom: "⇧⌘G"},
syncNow: {default: "F9", custom: "F9"},
enterBack: {default: "⌥←", custom: "⌥←"},
enter: {default: "⌥→", custom: "⌥→"},