MCPcopy
hub / github.com/primer/react / handler

Function handler

packages/react/src/hooks/useMenuKeyboardNavigation.ts:40–42  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

38 const anchor = anchorRef.current
39
40 const handler = (event: KeyboardEvent) => {
41 if (open && event.key === 'Tab') onClose?.('tab')
42 }
43
44 container?.addEventListener('keydown', handler)
45 anchor?.addEventListener('keydown', handler)

Callers

nothing calls this directly

Calls 1

onCloseFunction · 0.85

Tested by

no test coverage detected