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

Function onKeyDown

packages/react-aria/src/datepicker/useDateRangePicker.ts:182–190  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

180 'aria-disabled': props.isDisabled || null,
181 'aria-describedby': ariaDescribedBy,
182 onKeyDown(e: KeyboardEvent) {
183 if (state.isOpen) {
184 return;
185 }
186
187 if (props.onKeyDown) {
188 props.onKeyDown(e);
189 }
190 },
191 onKeyUp(e: KeyboardEvent) {
192 if (state.isOpen) {
193 return;

Callers

nothing calls this directly

Calls 1

onKeyDownMethod · 0.80

Tested by

no test coverage detected