focus canvas
This commit is contained in:
parent
557e2a8a8d
commit
c2f0e0a990
|
|
@ -71,6 +71,10 @@
|
|||
color: var(--c64-dark-blue);
|
||||
}
|
||||
|
||||
canvas:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--cyan);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export function focusHandler(e: MouseEvent) {
|
|||
const a = target.closest("a")
|
||||
|
||||
if (!a) {
|
||||
if (target.tagName === "INPUT" || target.tagName === "TEXTAREA")
|
||||
if (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.tagName === "CANVAS")
|
||||
return false
|
||||
|
||||
const selection = window.getSelection() || ""
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user