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

> The KeyContext type of @salmonui/data-grid/engine: Where focus is when the key is pressed. global bindings work from anywhere in the document.

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

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

```ts
type KeyContext = 'body' | 'header' | 'pager' | 'groupCaption' | 'groupChip' | 'editor' | 'global';
```

Where focus is when the key is pressed. `global` bindings work from anywhere in the document.
