mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Fix :unfocus
on nested shadowRoots
This commit is contained in:
parent
465913f4be
commit
987133a5f3
1 changed files with 1 additions and 1 deletions
|
@ -997,7 +997,7 @@ document.addEventListener("load", () => curJumps().then(() => jumpprev(0)))
|
|||
/** Blur (unfocus) the active element */
|
||||
//#content
|
||||
export function unfocus() {
|
||||
document.activeElement.shadowRoot ? (document.activeElement.shadowRoot.activeElement as HTMLInputElement).blur() : (document.activeElement as HTMLInputElement).blur()
|
||||
;((document.activeElement.shadowRoot ? DOM.deepestShadowRoot(document.activeElement.shadowRoot) : document).activeElement as HTMLInputElement).blur()
|
||||
contentState.mode = "normal"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue