(event?: KeyboardEvent | null)
| 47 | } |
| 48 | |
| 49 | export 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 | |
| 57 | export function shouldIgnoreAppShortcuts(event?: KeyboardEvent | null): boolean { |
| 58 | return isMonacoFocused(event) || isBlockingOverlayActive(event) |
no test coverage detected