mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
🚨
This commit is contained in:
parent
0200e6eed5
commit
bde581c8ad
3 changed files with 4 additions and 5 deletions
|
|
@ -27,7 +27,6 @@ import {
|
|||
import {getPreviousHeading} from "../protyle/wysiwyg/getBlock";
|
||||
import {lockFile, setTitle} from "../dialog/processSystem";
|
||||
import {zoomOut} from "../menus/protyle";
|
||||
import {confirmDialog} from "../dialog/confirmDialog";
|
||||
|
||||
export const openFileById = (options: {
|
||||
id: string,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ export const hideElements = (panels: string[], protyle?: IProtyle) => {
|
|||
if (!protyle) {
|
||||
if (panels.includes("dialog")) {
|
||||
for (let i = 0; i < window.siyuan.dialogs.length; i++) {
|
||||
window.siyuan.dialogs[i].destroy()
|
||||
window.siyuan.dialogs[i].destroy();
|
||||
i--;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ const switchDialogEvent = (event: MouseEvent, switchDialog: Dialog) => {
|
|||
}
|
||||
target = target.parentElement;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const globalShortcut = () => {
|
||||
window.addEventListener("mousemove", (event) => {
|
||||
|
|
@ -323,11 +323,11 @@ export const globalShortcut = () => {
|
|||
});
|
||||
if (isMac()) {
|
||||
switchDialog.element.addEventListener("contextmenu", (event) => {
|
||||
switchDialogEvent(event, switchDialog)
|
||||
switchDialogEvent(event, switchDialog);
|
||||
});
|
||||
}
|
||||
switchDialog.element.addEventListener("click", (event) => {
|
||||
switchDialogEvent(event, switchDialog)
|
||||
switchDialogEvent(event, switchDialog);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue