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

Function getMetaKey

packages/@react-aria/test-utils/src/utils.ts:46–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46export function getMetaKey(): 'MetaLeft' | 'ControlLeft' {
47 return isMac() ? 'MetaLeft' : 'ControlLeft';
48}
49
50export function formatTargetNode(value: number | string | HTMLElement): string {
51 if (typeof HTMLElement !== 'undefined' && value instanceof HTMLElement) {

Callers 5

toggleRowSelectionMethod · 0.90
toggleRowSelectionMethod · 0.90
toggleSelectAllMethod · 0.90
toggleOptionSelectionMethod · 0.90
toggleRowSelectionMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected