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

Function isBlockingOverlayActive

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

Source from the content-addressed store, hash-verified

47}
48
49export function isBlockingOverlayActive(event?: KeyboardEvent | null): boolean {
50 const contextElement = getContextElement(event)
51 return (
52 Boolean(contextElement?.closest(APP_BLOCKING_OVERLAY_SELECTOR)) ||
53 document.querySelector('[data-shortcut-blocking-overlay="true"]') !== null
54 )
55}
56
57export function shouldIgnoreAppShortcuts(event?: KeyboardEvent | null): boolean {
58 return isMonacoFocused(event) || isBlockingOverlayActive(event)

Callers 1

shouldIgnoreAppShortcutsFunction · 0.85

Calls 1

getContextElementFunction · 0.85

Tested by

no test coverage detected