(e: KeyboardEvent)
| 28 | useEffect(() => { |
| 29 | if (!open) return; |
| 30 | const handleKey = (e: KeyboardEvent) => { |
| 31 | if (e.key === "Escape") { setOpen(false); trackEvent("panel_close", { panel: "acknowledgements" }); } |
| 32 | }; |
| 33 | window.addEventListener("keydown", handleKey); |
| 34 | return () => window.removeEventListener("keydown", handleKey); |
| 35 | }, [open]); |
nothing calls this directly
no test coverage detected