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

Function isMonacoFocused

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

Source from the content-addressed store, hash-verified

42}
43
44export function isMonacoFocused(event?: KeyboardEvent | null): boolean {
45 const contextElement = getContextElement(event)
46 return Boolean(contextElement?.closest(MONACO_SELECTOR))
47}
48
49export function isBlockingOverlayActive(event?: KeyboardEvent | null): boolean {
50 const contextElement = getContextElement(event)

Callers 3

AppShortcuts.tsxFile · 0.90
shouldIgnoreAppShortcutsFunction · 0.85

Calls 1

getContextElementFunction · 0.85

Tested by

no test coverage detected