This commit is contained in:
Vanessa 2022-06-29 17:52:37 +08:00
parent 0200e6eed5
commit bde581c8ad
3 changed files with 4 additions and 5 deletions

View file

@ -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;
}