# moveActiveId

Maps grid keys to a cell id: horizontal movement stays in-row, vertical movement stays
in-column, and Ctrl+Home/End reaches grid endpoints.

## Signatures

```ts
export declare function moveActiveId(items: readonly Collection.Item<CellPosition>[], activeId: string | null, event: Pick<KeyboardEvent, "key" | "ctrlKey">): string | undefined;
```



## Examples

```ts
import * as Grid from "@typed/ui/Grid";

const nextId = Grid.moveActiveId([{ id: "a", value: { rowId: "r1", columnIndex: 1 } }], "a", { key: "ArrowRight", ctrlKey: false });
```
