(e: KeyboardEvent)
| 58 | } |
| 59 | } |
| 60 | const onKey = (e: KeyboardEvent) => { |
| 61 | if (e.key === 'Escape') onClose() |
| 62 | } |
| 63 | document.addEventListener('mousedown', onMouseDown) |
| 64 | document.addEventListener('keydown', onKey) |
| 65 | return () => { |
nothing calls this directly
no outgoing calls
no test coverage detected