Skip to content

Add up/down key time navigation to temporal time spinner#49

Merged
IanMayo merged 1 commit into
mainfrom
claude/elegant-mayer-vc4Vu
Jun 6, 2026
Merged

Add up/down key time navigation to temporal time spinner#49
IanMayo merged 1 commit into
mainfrom
claude/elegant-mayer-vc4Vu

Conversation

@IanMayo

@IanMayo IanMayo commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

What

In the 3D temporal stack, the time reel ("time spinner") can now be navigated with the ↑/↓ arrow keys when it has focus.

Why

The reel previously only responded to drag/flick and mouse-wheel input, and wasn't keyboard-reachable at all. Keyboard navigation is more precise (one slice per keypress) and makes the control accessible.

How

  • Made .temporal-wheel-reel focusable (tabIndex={0}) and gave it role="slider" plus aria-valuemin/max/now/valuetext for screen readers.
  • Added an onKeyDown handler that steps one time slice per press, reusing the same slice-snapping logic as the wheel handler. ArrowUp = later time, ArrowDown = earlier, matching the existing drag-up/scroll metaphor. Inertia is cancelled on keypress and preventDefault keeps the page from scrolling.
  • Added a :focus-visible outline so the focused reel is visible, and updated the hint text to mention the keys.

Testing

  • npm run typecheck, npm run lint, and npm run test:run (139 tests) all pass.

https://claude.ai/code/session_01Ko2yruDbXdBsZ8ZzgL4Y8L


Generated by Claude Code

Make the 3D temporal stack's time reel focusable and step one slice at a
time with ArrowUp/ArrowDown when it has focus (up = later, down = earlier),
matching the drag and scroll metaphors. Adds slider ARIA roles and a
focus-visible style.

https://claude.ai/code/session_01Ko2yruDbXdBsZ8ZzgL4Y8L
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-06 15:41 UTC

@IanMayo IanMayo merged commit 4d3f09e into main Jun 6, 2026
4 checks passed
@IanMayo IanMayo deleted the claude/elegant-mayer-vc4Vu branch June 6, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants