mirror of
https://github.com/outline/outline.git
synced 2026-11-25 15:15:15 +03:00
fix: Escape does not close CMD+K when viewing a document or collection
This commit is contained in:
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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user