mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-11 17:54:20 +01:00
This commit is contained in:
parent
e87504e2b4
commit
09ed2b15ed
9 changed files with 35 additions and 31 deletions
|
|
@ -55,6 +55,7 @@ import {setPadding} from "../protyle/ui/initUI";
|
|||
import {openRecentDocs} from "../business/openRecentDocs";
|
||||
import {App} from "../index";
|
||||
import {commandPanel} from "../plugin/commandPanel";
|
||||
import {toggleDockBar} from "../layout/dock/util";
|
||||
|
||||
const getRightBlock = (element: HTMLElement, x: number, y: number) => {
|
||||
let index = 1;
|
||||
|
|
@ -635,6 +636,11 @@ export const globalShortcut = (app: App) => {
|
|||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
if (!isTabWindow && matchHotKey(window.siyuan.config.keymap.general.toggleDock.custom, event)) {
|
||||
toggleDockBar(document.querySelector("#barDock use"));
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
if (!isTabWindow && !window.siyuan.config.readonly && matchHotKey(window.siyuan.config.keymap.general.config.custom, event)) {
|
||||
openSetting(app);
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue