MCPcopy Create free account
hub / github.com/adobe/react-spectrum / onKeyDown

Function onKeyDown

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

Source from the content-addressed store, hash-verified

186 'aria-disabled': props.isDisabled || null,
187 'aria-describedby': ariaDescribedBy,
188 onKeyDown(e: KeyboardEvent) {
189 if (state.isOpen) {
190 return;
191 }
192
193 keyboardProps.onKeyDown?.(e);
194 },
195 onKeyUp(e: KeyboardEvent) {
196 if (state.isOpen) {
197 return;

Callers

nothing calls this directly

Calls 1

onKeyDownMethod · 0.80

Tested by

no test coverage detected