Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ isCtrlKeyPressed
Function
isCtrlKeyPressed
packages/react-aria/src/utils/keyboard.tsx:324–326 ·
view source on GitHub ↗
(event: KeyPressEvent)
Source
from the content-addressed store, hash-verified
322
}
323
324
export function isCtrlKeyPressed(event: KeyPressEvent): boolean {
325
return isMac() ? event.metaKey : event.ctrlKey;
326
}
327
328
export function isKeyboardOpen(): boolean {
329
return state.isOpen;
Callers
4
onSelect
Function · 0.90
home
Function · 0.90
end
Function · 0.90
onKeyDown
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected