# controlOrMeta

**Kind:** Function

**Source:** [`atloria-monorepo/packages/editor/src/utils/detectMac.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/editor/src/utils/detectMac.ts#L14)

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

| Name | Type |
|---|---|
| `metaKey` | `boolean` |
| `ctrlKey` | `boolean` |

**Returns:** `boolean`
