Prevent sheet handling key events sourcing from modals
This commit is contained in:
parent
508cb6c58f
commit
2da07fb90c
|
@ -40,6 +40,11 @@
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Avoid processing events sourced from modals
|
||||||
|
if (e.target?.closest?.(".spectrum-Modal")) {
|
||||||
|
return
|
||||||
|
}
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
||||||
// Handle the key ourselves
|
// Handle the key ourselves
|
||||||
|
|
Loading…
Reference in New Issue