(to: Element, from: Element | null)
| 20 | } |
| 21 | |
| 22 | export function dispatchVirtualFocus(to: Element, from: Element | null): void { |
| 23 | to.dispatchEvent(createFocusEvent('focus', {relatedTarget: from})); |
| 24 | to.dispatchEvent(createFocusEvent('focusin', {bubbles: true, relatedTarget: from})); |
| 25 | } |
| 26 | |
| 27 | export function getVirtuallyFocusedElement(document: Document): Element | null { |
| 28 | let activeElement = getActiveElement(document); |
no test coverage detected