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

This commit is contained in:
Tom Moor committed 2024-06-17 22:01:37 -04:00
1 parent da5e5c0ca0
commit 34faf434d4
2 files changed
+6

No files matched your search

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