MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / handleQ

Function handleQ

src/App.tsx:26–31  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected