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

Function onKeyDown

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

Source from the content-addressed store, hash-verified

140 'aria-labelledby': labelledBy,
141 'aria-describedby': ariaDescribedBy,
142 onKeyDown(e: KeyboardEvent) {
143 if (state.isOpen) {
144 return;
145 }
146
147 keyboardProps.onKeyDown?.(e);
148 },
149 onKeyUp(e: KeyboardEvent) {
150 if (state.isOpen) {
151 return;

Callers

nothing calls this directly

Calls 1

onKeyDownMethod · 0.80

Tested by

no test coverage detected