From 95abf8b44b2dc14ed6ec17a6efaa3ec86067cc09 Mon Sep 17 00:00:00 2001 From: Wu Tianwei <30284043+WTW0313@users.noreply.github.com> Date: Tue, 16 Sep 2025 11:46:43 +0800 Subject: [PATCH] Update web/app/components/datasets/documents/detail/completed/common/drawer.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../datasets/documents/detail/completed/common/drawer.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/components/datasets/documents/detail/completed/common/drawer.tsx b/web/app/components/datasets/documents/detail/completed/common/drawer.tsx index 59ac9d76f1..b9d82e4e3a 100644 --- a/web/app/components/datasets/documents/detail/completed/common/drawer.tsx +++ b/web/app/components/datasets/documents/detail/completed/common/drawer.tsx @@ -32,6 +32,7 @@ const Drawer = ({ const currChildChunk = useSegmentListContext(s => s.currChildChunk) useKeyPress('esc', (e) => { + if (!open) return e.preventDefault() onClose() }, { exactMatch: true, useCapture: true })