(e: KeyboardEvent)
| 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]); |
nothing calls this directly
no outgoing calls
no test coverage detected