(e: KeyboardEvent)
| 6 | |
| 7 | useEffect(() => { |
| 8 | const handler = (e: KeyboardEvent) => { |
| 9 | if (e.key.toLowerCase() === 'd' && e.ctrlKey) { |
| 10 | e.preventDefault() |
| 11 | setShowDebugInfo(!showDebugInfo) |
| 12 | } |
| 13 | } |
| 14 | document.addEventListener('keypress', handler) |
| 15 | |
| 16 | return () => { |
nothing calls this directly
no outgoing calls
no test coverage detected