Vanessa 2023-09-09 14:54:05 +08:00
parent ff45ebcdaf
commit 2659052bb9
40 changed files with 164 additions and 151 deletions

View file

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