mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-06 07:31:48 +01:00
This commit is contained in:
parent
766e7ebc6b
commit
f2f292c5fa
8 changed files with 3 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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: "⌥→"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue