(e: KeyboardEvent)
| 25 | |
| 26 | useEffect(() => { |
| 27 | const handler = (e: KeyboardEvent) => { |
| 28 | if (e.code === 'Escape') { |
| 29 | handleClose(); |
| 30 | } |
| 31 | }; |
| 32 | window.addEventListener('keyup', handler); |
| 33 | |
| 34 | return () => { |
nothing calls this directly
no outgoing calls
no test coverage detected