{
  "id": "@typed/ui#Grid.moveActiveId",
  "canonicalId": "@typed/ui/Grid#moveActiveId",
  "symbol": {
    "id": "@typed/ui#Grid.moveActiveId",
    "packageName": "@typed/ui",
    "moduleName": ".",
    "exportName": "Grid.moveActiveId",
    "kind": "function",
    "signatures": [
      "export declare function moveActiveId(items: readonly Collection.Item<CellPosition>[], activeId: string | null, event: Pick<KeyboardEvent, \"key\" | \"ctrlKey\">): string | undefined;"
    ],
    "summary": "Maps grid keys to a cell id: horizontal movement stays in-row, vertical movement stays\nin-column, and Ctrl+Home/End reaches grid endpoints.",
    "sections": {},
    "examples": [
      {
        "language": "ts",
        "code": "import * as Grid from \"@typed/ui/Grid\";\n\nconst nextId = Grid.moveActiveId([{ id: \"a\", value: { rowId: \"r1\", columnIndex: 1 } }], \"a\", { key: \"ArrowRight\", ctrlKey: false });"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Grid.ts",
      "line": 566
    },
    "since": "1.0.0",
    "category": "Spatial navigation"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui#Grid.moveActiveId",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/ui",
    "exportName": "Grid",
    "qualifiedName": "Grid.moveActiveId",
    "declarationKey": "declaration:d38b2174bb603b8d9184fb9e",
    "family": "function",
    "signatures": [
      "export declare function moveActiveId(items: readonly Collection.Item<CellPosition>[], activeId: string | null, event: Pick<KeyboardEvent, \"key\" | \"ctrlKey\">): string | undefined;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Grid.ts",
        "start": {
          "line": 566,
          "column": 1
        },
        "end": {
          "line": 587,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui/Grid#moveActiveId",
      "@typed/ui/index#Grid.moveActiveId"
    ],
    "isAlias": true,
    "parentId": "@typed/ui#Grid",
    "static": false,
    "importedFrom": "declaration:d38b2174bb603b8d9184fb9e"
  },
  "declaration": {
    "declarationKey": "declaration:d38b2174bb603b8d9184fb9e",
    "name": "moveActiveId",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function moveActiveId(items: readonly Collection.Item<CellPosition>[], activeId: string | null, event: Pick<KeyboardEvent, \"key\" | \"ctrlKey\">): string | undefined;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Grid.ts",
            "start": {
              "line": 566,
              "column": 1
            },
            "end": {
              "line": 587,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function moveActiveId(items: readonly Collection.Item<CellPosition>[], activeId: string | null, event: Pick<KeyboardEvent, \"key\" | \"ctrlKey\">): string | undefined;"
    ],
    "typeParameters": [],
    "summary": "Maps grid keys to a cell id: horizontal movement stays in-row, vertical movement stays\nin-column, and Ctrl+Home/End reaches grid endpoints.",
    "sections": {},
    "examples": [
      {
        "language": "ts",
        "code": "import * as Grid from \"@typed/ui/Grid\";\n\nconst nextId = Grid.moveActiveId([{ id: \"a\", value: { rowId: \"r1\", columnIndex: 1 } }], \"a\", { key: \"ArrowRight\", ctrlKey: false });"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Grid.ts",
        "start": {
          "line": 566,
          "column": 1
        },
        "end": {
          "line": 587,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Spatial navigation"
  }
}
