mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 16:54:21 +01:00
This commit is contained in:
parent
e7fd94046d
commit
c6d69fd6f8
2 changed files with 2 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ import {writeText} from "../../protyle/util/compatibility";
|
|||
import {showMessage} from "../../dialog/message";
|
||||
|
||||
export const globalClick = (event: MouseEvent & { target: HTMLElement }) => {
|
||||
document.getElementById("dragGhost")?.remove();
|
||||
if (!window.siyuan.menus.menu.element.contains(event.target) && !hasClosestByAttribute(event.target, "data-menu", "true")) {
|
||||
if (getSelection().rangeCount > 0 && window.siyuan.menus.menu.element.contains(getSelection().getRangeAt(0).startContainer) &&
|
||||
window.siyuan.menus.menu.element.contains(document.activeElement)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue