fix: workflow zoomin/out shortcuts (#4283)

This commit is contained in:
zxhlyh
2024-05-11 10:38:12 +08:00
committed by GitHub
parent 1e451991db
commit 13f4ed6e0e
2 changed files with 21 additions and 3 deletions

View File

@@ -406,3 +406,11 @@ export const getTopLeftNodePosition = (nodes: Node[]) => {
y: minY,
}
}
export const isEventTargetInputArea = (target: HTMLElement) => {
if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA')
return true
if (target.contentEditable === 'true')
return true
}