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

Function isActionKey

packages/react-aria/src/selection/useSelectableItem.ts:513–515  ·  view source on GitHub ↗
(key: string | undefined)

Source from the content-addressed store, hash-verified

511}
512
513function isActionKey(key: string | undefined) {
514 return key === 'Enter';
515}
516
517function isSelectionKey(key: string | undefined) {
518 return key === ' ';

Callers 1

useSelectableItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected