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

Function onPress

packages/react-aria/src/selection/useSelectableItem.ts:384–389  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

382 }
383 },
384 onPress(e) {
385 if (e.pointerType === 'touch') {
386 manager.setFocused(true);
387 manager.setFocusedKey(key);
388 }
389 }
390 });
391 }
392

Callers

nothing calls this directly

Calls 2

setFocusedMethod · 0.65
setFocusedKeyMethod · 0.65

Tested by

no test coverage detected