MCPcopy Index your code
hub / github.com/primer/react / internalKeyDown

Function internalKeyDown

packages/react/src/drafts/SelectPanel2/SelectPanel.tsx:434–441  ·  view source on GitHub ↗
(event: React.KeyboardEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

432 }
433
434 const internalKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {
435 if (event.key === 'ArrowDown') {
436 event.preventDefault() // prevent scroll
437 moveFocusToList()
438 }
439
440 if (typeof propsOnKeyDown === 'function') propsOnKeyDown(event)
441 }
442
443 return (
444 <TextInput

Callers

nothing calls this directly

Calls 1

moveFocusToListFunction · 0.85

Tested by

no test coverage detected