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

Function isActionKey

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

Source from the content-addressed store, hash-verified

517}
518
519function isActionKey(key: string | undefined) {
520 return key === 'Enter';
521}
522
523function isSelectionKey(key: string | undefined) {
524 return key === ' ';

Callers 1

useSelectableItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected