This commit is contained in:
Vanessa 2023-06-24 21:17:28 +08:00
parent 92ab94bf51
commit 72d0b6409b
4 changed files with 11 additions and 1 deletions

View file

@ -54,6 +54,7 @@ import {fullscreen} from "../protyle/breadcrumb/action";
import {setPadding} from "../protyle/ui/initUI";
import {openRecentDocs} from "../business/openRecentDocs";
import {App} from "../index";
import {commandPanel} from "../plugin/commandPanel";
const getRightBlock = (element: HTMLElement, x: number, y: number) => {
let index = 1;
@ -602,6 +603,11 @@ export const globalShortcut = (app: App) => {
syncGuide(app);
return;
}
if (matchHotKey(window.siyuan.config.keymap.general.commandPanel.custom, event)) {
event.preventDefault();
commandPanel(app);
return;
}
if (matchHotKey(window.siyuan.config.keymap.general.editMode.custom, event)) {
event.preventDefault();
editor.setReadonly();