Update web/app/components/datasets/documents/detail/completed/common/drawer.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Wu Tianwei 2025-09-16 11:46:43 +08:00 committed by GitHub
parent 6440be9f35
commit 95abf8b44b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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 })