diff --git a/src/components/SpanPopover.tsx b/src/components/SpanPopover.tsx index d941d22..89613ed 100644 --- a/src/components/SpanPopover.tsx +++ b/src/components/SpanPopover.tsx @@ -97,17 +97,6 @@ export default function SpanPopover({ onCancel(); }; - const handleEscape = (e: KeyboardEvent) => { - if (e.key === 'Escape' && open) { - handleCancel(); - } - }; - - useEffect(() => { - window.addEventListener('keydown', handleEscape); - return () => window.removeEventListener('keydown', handleEscape); - }, [open]); - return (