MCPcopy Create free account
hub / github.com/CopilotKit/OpenGenerativeUI / handleKeyDown

Function handleKeyDown

apps/app/src/components/desktop-tip-modal.tsx:35–37  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

33 useEffect(() => {
34 if (!notDismissed) return;
35 const handleKeyDown = (e: KeyboardEvent) => {
36 if (e.key === "Escape") dismiss();
37 };
38 document.addEventListener("keydown", handleKeyDown);
39 return () => document.removeEventListener("keydown", handleKeyDown);
40 });

Callers

nothing calls this directly

Calls 1

dismissFunction · 0.85

Tested by

no test coverage detected