Skip to content

controlOrMeta

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/editor/src/utils/detectMac.ts

Returns true if the user is pressing the control key on Windows or the meta key on Mac.

Signature

ts
function controlOrMeta(metaKey: boolean, ctrlKey: boolean): boolean

Parameters

NameType
metaKeyboolean
ctrlKeyboolean

Returns: boolean

Was this page helpful?

Download as PDF