don't worry about links
This commit is contained in:
parent
1197af67ef
commit
960f92b829
|
|
@ -23,11 +23,7 @@ export function focusHandler(e: MouseEvent) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// let them click on links
|
if (["INPUT", "TEXTAREA", "CANVAS", "A"].includes(target.tagName))
|
||||||
const a = target.closest("a")
|
|
||||||
|
|
||||||
if (!a) {
|
|
||||||
if (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.tagName === "CANVAS")
|
|
||||||
return false
|
return false
|
||||||
|
|
||||||
const selection = window.getSelection() || ""
|
const selection = window.getSelection() || ""
|
||||||
|
|
@ -35,6 +31,4 @@ export function focusHandler(e: MouseEvent) {
|
||||||
focusInput()
|
focusInput()
|
||||||
|
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user