# keyComboFromEvent (@salmonui/data-grid/engine)

> The keyComboFromEvent function of @salmonui/data-grid/engine: Canonical combo of a key event. Letters are read from code when Alt is held (macOS Option produces composed characters: Alt+J is ∆) and from key otherwise, so Ctrl+A follows the keyboard layout.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/keyComboFromEvent

```ts
import { keyComboFromEvent } from '@salmonui/data-grid/engine';
```

Also exported from `@salmonui/data-grid/engine/keyboard`.

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: function

```ts
function keyComboFromEvent(event: KeyEventLike): string;
```

Canonical combo of a key event. Letters are read from `code` when Alt is
held (macOS Option produces composed characters: Alt+J is `∆`) and from
`key` otherwise, so Ctrl+A follows the keyboard layout.
