fix: Escape does not close CMD+K when viewing a document or collection

This commit is contained in:
Tom Moor
2024-06-14 22:56:39 -04:00
parent 9415a35795
commit 6318714aee
2 changed files with 6 additions and 0 deletions

View File

@@ -59,6 +59,9 @@ function SharePopover({ collection, visible, onRequestClose }: Props) {
useKeyDown(
"Escape",
(ev) => {
if (!visible) {
return;
}
ev.preventDefault();
ev.stopImmediatePropagation();

View File

@@ -67,6 +67,9 @@ function SharePopover({
useKeyDown(
"Escape",
(ev) => {
if (!visible) {
return;
}
ev.preventDefault();
ev.stopImmediatePropagation();