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

Function getContextElement

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

Source from the content-addressed store, hash-verified

38}
39
40function getContextElement(event?: KeyboardEvent | null): HTMLElement | null {
41 return getTargetElement(event) ?? getActiveElement()
42}
43
44export function isMonacoFocused(event?: KeyboardEvent | null): boolean {
45 const contextElement = getContextElement(event)

Callers 3

isMonacoFocusedFunction · 0.85
isBlockingOverlayActiveFunction · 0.85

Calls 2

getTargetElementFunction · 0.85
getActiveElementFunction · 0.85

Tested by

no test coverage detected