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

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

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

```ts
import type { Keymap } 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: interface

```ts
interface Keymap {
    readonly platform: KeyPlatform;
    resolve(event: KeyEventLike, context: KeyContext): string | null;
    resolveCombo(combo: string, context: KeyContext): string | null;
    combosOf(command: string): readonly string[];
    readonly bindings: readonly KeyBinding[];
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `platform` | `readonly platform: KeyPlatform;` |  |  |
| `resolve` | `resolve(event: KeyEventLike, context: KeyContext): string \| null;` |  | Keyboard command bound to the event's combo in `context`, or null. |
| `resolveCombo` | `resolveCombo(combo: string, context: KeyContext): string \| null;` |  |  |
| `combosOf` | `combosOf(command: string): readonly string[];` |  | Effective canonical combos of a command on this platform. |
| `bindings` | `readonly bindings: readonly KeyBinding[];` |  |  |
