Prevent sheet handling key events sourcing from modals

This commit is contained in:
Andrew Kingston 2023-04-17 18:59:01 +01:00
parent 508cb6c58f
commit 2da07fb90c
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,11 @@
return
}
}
// Avoid processing events sourced from modals
if (e.target?.closest?.(".spectrum-Modal")) {
return
}
e.preventDefault()
// Handle the key ourselves