MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / handleEsc

Function handleEsc

frontend/src/components/Settings/SettingsModal.tsx:18–22  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

16
17 useEffect(() => {
18 const handleEsc = (e: KeyboardEvent) => {
19 if (e.key === 'Escape' && isOpen) {
20 onClose();
21 }
22 };
23
24 document.addEventListener('keydown', handleEsc);
25 return () => document.removeEventListener('keydown', handleEsc);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected