MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / handleEscape

Function handleEscape

src/components/SkillDetailModal.tsx:29–31  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

27
28 useEffect(() => {
29 const handleEscape = (e: KeyboardEvent) => {
30 if (e.key === "Escape") onClose();
31 };
32 window.addEventListener("keydown", handleEscape);
33 return () => window.removeEventListener("keydown", handleEscape);
34 }, [onClose]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected