MCPcopy Create free account
hub / github.com/experdot/pointer / getActiveElement

Function getActiveElement

src/renderer/src/utils/shortcutGuards.ts:36–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36function getActiveElement(): HTMLElement | null {
37 return document.activeElement instanceof HTMLElement ? document.activeElement : null
38}
39
40function getContextElement(event?: KeyboardEvent | null): HTMLElement | null {
41 return getTargetElement(event) ?? getActiveElement()

Callers 1

getContextElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected