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

> The KeyBinding interface of @salmonui/data-grid/engine.

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

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

Also exported from `@salmonui/data-grid`, `@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: interface

```ts
interface KeyBinding {
    readonly command: string;
    readonly keys: readonly string[];
    readonly mac?: readonly string[];
    readonly contexts: readonly KeyContext[];
    readonly feature: 'focus' | 'selection' | 'sort' | 'columns' | 'pager' | 'grouping' | 'editing' | 'clipboard' | 'print' | 'menu' | 'rows' | 'grid';
    readonly core: boolean;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `command` | `readonly command: string;` |  | Keyboard command name, `<area>.<action>` (`focus.down`, `edit.begin`). |
| `keys` | `readonly keys: readonly string[];` |  | Windows/Linux combos. `Mod` is Ctrl there and Cmd on macOS. |
| `mac` | `readonly mac?: readonly string[];` | optional | macOS combos when they differ (authoritative on Mac). |
| `contexts` | `readonly contexts: readonly KeyContext[];` |  |  |
| `feature` | `readonly feature: 'focus' \| 'selection' \| 'sort' \| 'columns' \| 'pager' \| 'grouping' \| 'editing' \| 'clipboard' \| 'print' \| 'menu' \| 'rows' \| 'grid';` |  | Feature that implements the behavior; informational. |
| `core` | `readonly core: boolean;` |  | True for the core keyboard table rows; false for Salmon UI additions. |
