mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
This commit is contained in:
parent
92ab94bf51
commit
72d0b6409b
4 changed files with 11 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue