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

Function getTargetElement

src/renderer/src/utils/shortcutGuards.ts:32–34  ·  view source on GitHub ↗
(event?: KeyboardEvent | null)

Source from the content-addressed store, hash-verified

30].join(', ')
31
32function getTargetElement(event?: KeyboardEvent | null): HTMLElement | null {
33 return event?.target instanceof HTMLElement ? event.target : null
34}
35
36function getActiveElement(): HTMLElement | null {
37 return document.activeElement instanceof HTMLElement ? document.activeElement : null

Callers 1

getContextElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected