diff --git a/packages/frontend-core/src/components/sheet/overlays/KeyboardManager.svelte b/packages/frontend-core/src/components/sheet/overlays/KeyboardManager.svelte index a9b733c89a..486ec29fb2 100644 --- a/packages/frontend-core/src/components/sheet/overlays/KeyboardManager.svelte +++ b/packages/frontend-core/src/components/sheet/overlays/KeyboardManager.svelte @@ -40,6 +40,11 @@ return } } + + // Avoid processing events sourced from modals + if (e.target?.closest?.(".spectrum-Modal")) { + return + } e.preventDefault() // Handle the key ourselves