(event: KeyboardEvent)
| 24 | |
| 25 | useEffect(() => { |
| 26 | const handleQ = (event: KeyboardEvent) => { |
| 27 | if (event.key === 'q') { |
| 28 | // q |
| 29 | tooltipRef.current?.close() |
| 30 | } |
| 31 | } |
| 32 | window.addEventListener('keydown', handleQ) |
| 33 | return () => { |
| 34 | window.removeEventListener('keydown', handleQ) |
nothing calls this directly
no outgoing calls
no test coverage detected