---
title: "Input"
description: "A keyboard shortcut does nothing. A Meta shortcut does nothing on Windows. A hold's pointerup never arrives. A heightDragFor handle does nothing."
modificationDate: "2026-12-01"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Input

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/reference/pitfalls/input: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

- **A keyboard shortcut does nothing.** Two causes, both as on the web.
  `aria-keyshortcuts` belongs to a node that must be on the screen: a button with
  `display="none"` (a "hidden" shortcut holder) is not, so its key never fires; give
  the key a visible control (a status line of keys, as the LLP reader's) or handle
  it in a `key=` handler. And Shift is part of the shortcut: `n` is the unshifted
  key, a capital `N` is `Shift+N`, so write `aria-keyshortcuts="Shift+N"` for it (in
  a terminal too, where a typed capital is reported as `Shift+N`).
- **A `Meta` shortcut does nothing on Windows.** Every host matches a chord as
  written, and on Windows `Meta` is the Windows key, whose chords the shell takes
  (Win+N is Notification Center), so `"Meta+N"` alone never fires there. List the
  Control chord beside it, `aria-keyshortcuts="Meta+N Control+N"`. In an app with
  a Windows host (`host.windows` in `app.json`, or a `windows/` crate) the build
  warns: `analyze-shortcut-meta-only` names the chord to add, and
  `analyze-shortcut-windows-reserved` a chord Windows keeps for itself (Alt+Tab,
  Alt+F4, Alt+Space, Control+Escape, Control+Shift+Escape, Control+Alt+Delete).
  (LLP 1115.004 D9.6.)

- **A hold's `pointerup` never arrives.** Handle `pointercancel` when the system
  takes the contact. Keep the pressed node mounted through either end. If a
  state change replaces it during the hold, its handler is gone (LLP 1005).
  **Candidate diagnostic:** the runtime could log a dropped up in development.
- **A `heightDragFor` handle does nothing.** Its target must be the handle's
  unique strict ancestor with that `id`, with `box-sizing="border-box"` and a
  finite nonnegative point height (`height=200`, or a number binding).
  The CSS default is content-box; a percentage, `auto` or an omitted height also
  prevents binding. The handle and its ancestors must also be displayed,
  enabled and non-inert (`kernel/src/motion.rs`). The compiler warns with
  `lower-height-drag-ineligible` when it can prove a requirement fails, naming
  the element and repair. Computed values remain runtime checks.
- **A `transformDragFor` handle does nothing.** The binding resolves only for a
  strict shape (`kernel/src/transform.rs`). The compiler warns with
  `lower-transform-drag-ineligible` when it can prove a target, clip or path
  violates that shape, naming the element and repair. Dynamic values and host
  geometry remain runtime checks; the agent's transform-drag command reports
  "no photo binding" when those fail. The target, the handle's one
  ancestor with that `id`, must be a plain view (`column` or `box`) with
  `width="100%" height="100%" box-sizing="border-box"`, no padding, border,
  margin or offsets. Its direct parent must also be a plain view, with
  `overflow="hidden"` on both axes and no padding or border. The handle and every
  ancestor must be displayed, enabled and non-inert; all except the target must
  be untransformed. (Signal Clone, build 11: the photo viewer lacked
  `overflow="hidden"` and `box-sizing`.)

- **A field normalized while the person types fights the typing.** A `task … when
  people != "${count}"` (or a timer, or an `input` action) that rewrites an
  emptied field to `"1"` lands between keystrokes: clearing the field and typing
  `3` reads `13`, for a person as for a test. Fix: keep the raw text while
  editing and normalize in `change` (Enter or blur), as the guide's "Editing a
  value: the field's contract" shows. (Authoring bench, LLP 1087, t1-tip,
  codex, 2026-10-07: per-person share 8.85 for 3 people, because the field read
  13.)
- **A field's `change` fires when a tap elsewhere blurs it.** A dialog that adds
  a word on `change` adds it the moment the person taps a duration or another
  control, before they meant to submit. Cause: `change` is the commit event, and
  a text field commits on Enter and on blur, as in HTML. Fix: submit on `submit`
  (Return, a form's button) and keep `change` for normalizing the draft.
  (The Bluesky clone's muted words dialog, 2026-10-08.)
- **Skipping an assignment keeps the rejected text visible.** A live filter
  assigns the accepted value on every edit, including
  when it equals the previous value. An action that only validates, or a data
  layer that suppresses the assignment, leaves the draft in place. Keep raw
  text in state for a number that can be half-typed, then parse on commit.
  See "Editing a value: the field's contract" in the guide.

- **A checkbox bound to a resource field does not tick until the save answers.** With
  `checked=form.terms change=editTerms`, where `editTerms` sends a mutation that
  `refreshes form`, a click shows the box unchecked again while the save's answer is
  out and checked only when the refreshed answer lands, so a slow store shows no tick,
  and a test that clicks and reads `checked` before the answer fails. Cause: every host (both web targets, iOS,
  macOS) re-sets the box to its binding, `form.terms`, which is still `false` until
  the answer. Fix: give the mutation `refreshes form` and export an `overlay` that lays
  the pending save over `form`'s answer (the agent guide's "Optimistic writes: the
  overlay"), so `form.terms` reads the new value from the click until the refreshed
  answer has it; or bind the box to state the
  action writes at once (`terms = value`, then `send`), seeded from the saved record as
  a form does. (Authoring bench, LLP 1087, codex17 t7-wizard, 2026-10-05; the overlay
  checked on the web with a save that never answers, 2026-10-09.)

- **A long unbroken word runs off its box.** A 500-character word, a URL or an ID in a
  message overflows its card on every host, where UIKit's label would break it. Cause:
  Exact keeps CSS's `overflow-wrap: normal` (LLP 1001 bit 90; ruled 2026-10-20). Fix:
  write `overflow-wrap="anywhere"` on a text that may hold one (the chat recipe's bubble).
  `break-word` breaks it only in a text with its own `max-width`, not one in a bounded column
  (a bubble with its time under it), since it adds no break to min-content (CSS Text 3 §5.5).
  (Round 23's and round 32's chat-rooms.)

- **A test `drag` is a touch unless `mouse` is set.** `tap "chart" drag 20 0`
  is a finger (`pointerType` `touch`) on the web, so a `pointerup` that treats
  a touch as the finger leaving clears the hover the next assertion still wants.
  Fix: on touch-up, end the drag and leave the hover, or write `mouse` for the
  left button. iOS refuses `mouse`; macOS and Linux drag with the mouse anyway
  ([authored tests](https://exact.expo.dev/reference/contract-grammar/authored-tests.md)). (Stocks diary: the chart
  readout unmounted, about 10 minutes, 2026-10-04.)
  A finger on a box with its own pointer handlers also needs
  `touch-action="none"` when that box should own the drag: otherwise the browser
  may scroll and send `pointercancel`, ending its moves. The web drag reply names
  observed cancellation and scrolling, with the named node’s `touch-action` and
  the effective intersection through its ancestors at contact start. Changing
  `touch-action` in that touch's `pointerdown` does not change the browser's
  decision. On iOS, UIKit decides when the pan is recognized, so that write
  applies there. For the same behavior on every host, set `none` before the
  touch starts. `drag … mouse` exercises the mouse path.

- **A `pan` hears nothing from a finger on the web.** A drag with
  `tap <id> drag dx dy` (or a real touch) moves nothing and logs nothing. Cause:
  without `touch-action="none"` on the pan's box the browser takes the touch for
  scrolling and the pointer events are cancelled. Fix: `touch-action="none"` on the
  dragged box (only that box, so the page still scrolls from elsewhere). (Authoring
  bench, LLP 1087, t4-kanban: about 15 minutes, 2026-10-04.) **Candidate
  diagnostic:** the compiler could warn on a `pan` without `touch-action`.

- **`swipe-follow="left"` is not swipe-to-delete.** A row given `swipe` with
  `swipe-follow="left"`, or built from `pan`, `panrelease` and `translate`, follows the
  finger and runs one action when it lifts, but reveals no Delete button and is not the
  platform's swipe action. Fix: `delete=remove(item.id)` on the list's row (`contract
  vocab swipe`): on iOS UIKit's own swipe action, which a full swipe performs. Cause: a
  swipe the node follows is the reply gesture's (a message bubble), one action at the
  gesture's end.
  Actions other than Delete are a swipe row written by hand (the next pitfall).
  (Ledger2 DIARY, "Needed: swipe gesture", about 15 minutes, 2026-10-04.)

- **A hand-written swipe row shows its buttons under the row, and nothing swipes.** iOS
  refuses the swipe and `logs` says why (`swipeContent on #11 is refused: swipeContent
  "row-0-1" is 402x74, not the row's 402x94.3333 border box`). Cause: the swipe `scroll`
  puts its content and action buttons side by side only when it is laid out as a row. A
  grouped list's section makes each of its rows one; anywhere else a scroll with no
  `display` is a block and stacks the buttons under the content. A `list` whose
  `section` has no `appearance` is neither a grouped list nor a list of cells, so its
  rows are drawn as written (warning `lower-list-section`). Fix: give a list with
  sections `appearance="auto"` (`listStyle="plain"` for a plain list's look), or drop
  the `section`; then a Delete the platform draws is `delete=` on the row (`contract
  vocab swipe`). (Guard-rail evaluation, Duo Notes, 2026-10-17.)

  Write a swipe by hand only for other actions (Pin, Flag, a leading action, several)
  or a Delete `delete=` cannot say, with `display="flex"` on its scroll. Its rules:
  - iOS refuses a row whose content is not exactly the scroll's size; a border on the
    scroll shrinks the content, so put a hairline on the content (Splitter DIARY,
    rough 10). A grouped list's row is exempt (its list cell swipes), but there
    `width="100%"` on the scroll runs past the card by the section's inset and clips
    the content's last control on every host: write no `width` on it (grocery-list
    DIARY, issue 2, round 3).
  - An action button indented as the `scroll`'s sibling, not its child, is no swipe
    action: iOS refuses the row and the web draws the button as a second line (warning
    `lower-swipe-wiring`; grocery-list, round 12).
  - UIKit draws the actions in its own shape and size (round on iOS 26 and later) with
    each button's background colour and a snapshot of its content, not the painted box
    (euxy port, 2026-10-15). To keep the paint, give every control the row names
    `appearance="none"`: the row keeps its snap scroll, the full swipe, one row open at
    a time and the actions VoiceOver reads (`apps/messages` paints its own circles in
    hex and is no model for the rest).

- **A swipe the node follows (`swipe-follow`) hears nothing from a finger on iOS.** A mouse
  drag fires it on the web and macOS, in a drive and in a test, while a real touch on an
  iPhone does nothing. Cause: with `touch-action` at `auto` a horizontal pan is the
  platform's, as in a browser, so the swipe never begins. In a painted content region's
  picture a row with a `swipeIndicator` child or a resting transform also stays still,
  since the picture's route follows only a row with neither. Fix:
  `touch-action="pan-y"` on the swiped node, which leaves vertical scrolling to the
  page. The bubble follows the finger with or without a `transition`; the one
  Messages gives it, `transition="translate -exact-spring(300, 30, 1)"`, springs it
  back after the lift and does not arm the gesture
  ([Swipe to reply](https://exact.expo.dev/learn/contract-for-agents/time-motion-graphics-and-platform-facts.md#swipe-to-reply)). (Chat2 DIARY, about 20
  minutes; reproduced with `agent ios --touch platform`, 2026-10-04.) **Candidate
  diagnostic:** the compiler could warn on a `swipe-follow` without `touch-action`, as on a `pan`.

- **A dragged piece snaps back, lands on the wrong square, or a tap moves it.** A
  board has no drop target; build the drag from the pointer events (Chess DIARY,
  about 30 minutes; this recipe driven on the web and macOS, 2026-10-04):
  - Each square takes `pointerdown`, `pointermove`, `pointerup` and
    `touch-action="none"` (a finger otherwise scrolls and the events are cancelled).
  - The square that took the `pointerdown` holds the pointer: its `pointermove`s and
    its `pointerup` come wherever the pointer goes, with `offsetX`/`offsetY` measured
    from that square. The drop square is the held one's column plus
    `floor(e.offsetX / cell)`, and its row plus `floor(e.offsetY / cell)`.
  - Start a drag only past a threshold (`dx * dx + dy * dy > 64`), so a tap stays a tap.
  - Draw the ghost as a later sibling of the squares inside a `position="relative"`
    board (`position="absolute"`, `pointer-events="none"`): `z-index` orders siblings
    only, so a ghost inside a square cannot float over the next one.
  - Keep the piece in its square while it is dragged, dimmed with `opacity`.

  ```text
  action down(i: number, e: PointerEvent)
    from = i
    dragging = false
  action move(i: number, e: PointerEvent)
    if from >= 0
      dx = e.offsetX - half
      dy = e.offsetY - half
      dragging = dragging or dx * dx + dy * dy > 64
  action up(i: number, e: PointerEvent)
    if dragging
      drop(from, from + floor(e.offsetX / cell))
    from = -1
    dragging = false
  ```
- **A write left running after a source answers can be lost on iOS or macOS.** The
  web kept it; the native host did not, and a list was empty after a relaunch. Cause:
  the native data executor advances a source's promises while an answer waits on
  them. A `promise` started and not awaited (a fire-and-forget SQLite write) can
  stay unfinished, and storage steps wait for earlier requests even while resource
  fetches overlap. Fix: await the write before answering, or carry it in a
  request of its own that the view sends (a `flush` source called with the change).
  (Authoring bench, LLP 1087, t2-todo on iOS: about 20 minutes, 2026-10-05.)
