Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
513
function
isActionKey(key: string | undefined) {
514
return
key ===
'Enter'
;
515
}
516
517
function
isSelectionKey(key: string | undefined) {
518
return
key ===
' '
;
Callers
1
useSelectableItem
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected