mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 07:46:09 +01:00
This commit is contained in:
parent
5b30b60bf7
commit
73cb847d1d
1 changed files with 5 additions and 0 deletions
|
|
@ -88,6 +88,11 @@ const switchDialogEvent = (event: MouseEvent, switchDialog: Dialog) => {
|
|||
};
|
||||
|
||||
export const globalShortcut = () => {
|
||||
document.body.addEventListener("mouseleave", (event) => {
|
||||
window.siyuan.layout.leftDock.hideDock();
|
||||
window.siyuan.layout.rightDock.hideDock();
|
||||
window.siyuan.layout.bottomDock.hideDock();
|
||||
});
|
||||
window.addEventListener("mousemove", (event: MouseEvent & { target: HTMLElement }) => {
|
||||
if (window.siyuan.hideBreadcrumb) {
|
||||
document.querySelectorAll(".protyle-breadcrumb__bar--hide").forEach(item => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue