MCPcopy Index your code
hub / github.com/adobe/react-spectrum / onKeyDown

Function onKeyDown

packages/react-aria/src/datepicker/useDatePicker.ts:136–144  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

134 'aria-labelledby': labelledBy,
135 'aria-describedby': ariaDescribedBy,
136 onKeyDown(e: KeyboardEvent) {
137 if (state.isOpen) {
138 return;
139 }
140
141 if (props.onKeyDown) {
142 props.onKeyDown(e);
143 }
144 },
145 onKeyUp(e: KeyboardEvent) {
146 if (state.isOpen) {
147 return;

Callers

nothing calls this directly

Calls 1

onKeyDownMethod · 0.80

Tested by

no test coverage detected