{
  "id": "@typed/ui#Composite.keyMove",
  "canonicalId": "@typed/ui/Composite#keyMove",
  "symbol": {
    "id": "@typed/ui#Composite.keyMove",
    "packageName": "@typed/ui",
    "moduleName": ".",
    "exportName": "Composite.keyMove",
    "kind": "function",
    "signatures": [
      "export declare function keyMove(event: Pick<KeyboardEventLike, \"key\">, options: {\n    readonly orientation?: Orientation;\n    readonly rtl?: boolean;\n}): Move | undefined;"
    ],
    "summary": "Maps Home/End and orientation-aware Arrow keys to movement, reversing horizontal arrows for RTL.",
    "sections": {
      "Why": "Separating this deterministic policy from event wiring lets applications test it directly and\nreuse it in custom composites.",
      "Ownership and lifetime": "This is a synchronous calculation. It acquires no resources and does not mutate the input array,\nstate, event, or DOM."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Composite from \"@typed/ui/Composite\";\n\nconst direction = Composite.keyMove({ key: \"ArrowLeft\" }, { orientation: \"horizontal\", rtl: true });"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Composite.ts",
      "line": 585
    },
    "since": "1.0.0",
    "category": "Keyboard navigation"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui#Composite.keyMove",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/ui",
    "exportName": "Composite",
    "qualifiedName": "Composite.keyMove",
    "declarationKey": "declaration:acf14114e3ad4413846762a0",
    "family": "function",
    "signatures": [
      "export declare function keyMove(event: Pick<KeyboardEventLike, \"key\">, options: {\n    readonly orientation?: Orientation;\n    readonly rtl?: boolean;\n}): Move | undefined;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Composite.ts",
        "start": {
          "line": 585,
          "column": 1
        },
        "end": {
          "line": 599,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui/Composite#keyMove",
      "@typed/ui/index#Composite.keyMove"
    ],
    "isAlias": true,
    "parentId": "@typed/ui#Composite",
    "static": false,
    "importedFrom": "declaration:acf14114e3ad4413846762a0"
  },
  "declaration": {
    "declarationKey": "declaration:acf14114e3ad4413846762a0",
    "name": "keyMove",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function keyMove(event: Pick<KeyboardEventLike, \"key\">, options: {\n    readonly orientation?: Orientation;\n    readonly rtl?: boolean;\n}): Move | undefined;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Composite.ts",
            "start": {
              "line": 585,
              "column": 1
            },
            "end": {
              "line": 599,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function keyMove(event: Pick<KeyboardEventLike, \"key\">, options: {\n    readonly orientation?: Orientation;\n    readonly rtl?: boolean;\n}): Move | undefined;"
    ],
    "typeParameters": [],
    "summary": "Maps Home/End and orientation-aware Arrow keys to movement, reversing horizontal arrows for RTL.",
    "sections": {
      "Why": "Separating this deterministic policy from event wiring lets applications test it directly and\nreuse it in custom composites.",
      "Ownership and lifetime": "This is a synchronous calculation. It acquires no resources and does not mutate the input array,\nstate, event, or DOM."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import * as Composite from \"@typed/ui/Composite\";\n\nconst direction = Composite.keyMove({ key: \"ArrowLeft\" }, { orientation: \"horizontal\", rtl: true });"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Composite.ts",
        "start": {
          "line": 585,
          "column": 1
        },
        "end": {
          "line": 599,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Keyboard navigation"
  }
}
