1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

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

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