Keyboard never animates; Tab reaches the note in a few stops (#344, #349) #361

Closed
kayg wants to merge 0 commits from issue/344-keyboard-no-motion-2 into dev
Owner

Replaces #359 (review fixes). Fixes #344 and #349.

#344, keyboard never animates

  • One input-source signal, packages/ui/src/lib/inputSource.svelte.ts (data-last-input on the root); ui.lastInput reads it. The attribute is written only when it changes, and reads "typing" while words go into a field, so typing does not pay for the rule. On-screen keyboard keys count as keyboard (commented).
  • After an acting key every CSS transition is off (base.css); the bar swap, drawer slide/fade and backdrop shade read the same signal. Morph change: two duration: 0 returns. bar.css untouched (#287).

#349, keyboard navigation

  • "Skip to the note" is the first Tab stop (shown only while focused). Places and notes lists are one Tab stop each (roving.ts, batched, writes only on change). Note landmark labelled; splitter focus bar 3px accent; Keyboard settings says Esc then Tab moves on.

Tests (Chromium and WebKit, 1440): keys-no-motion.spec.ts (no running animation after Ctrl+, Ctrl+K, Ctrl+, Ctrl+. and list arrows), keys-tab.spec.ts (note in at most 5 stops, one stop per list, accent ring on each stop, Esc then Tab leaves, Tab still nests list items). shortcuts.spec tooltip test fixed: it passed only while the old bar was fading out. tabs.spec "Notes keeps its editor" fails on clean dev too.

Typing cost (1,000-note list, keystroke to paint, Chromium, shared machine so noisy, 5 interleaved runs each, an arrow key pressed first so the keyboard rule is on):

median p50 median p95
dev 77 ms 262 ms
this PR 84 ms 266 ms
A first version (rule on for every keystroke) measured median p95 329 ms against 276 ms with the rule removed, which is why typing now switches it off.

Screenshots (Tab stops at 1440, narrow 320/360/375/390, light and dark, Chromium and WebKit) are on #349.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Replaces #359 (review fixes). Fixes #344 and #349. **#344, keyboard never animates** - One input-source signal, `packages/ui/src/lib/inputSource.svelte.ts` (`data-last-input` on the root); `ui.lastInput` reads it. The attribute is written only when it changes, and reads "typing" while words go into a field, so typing does not pay for the rule. On-screen keyboard keys count as keyboard (commented). - After an acting key every CSS transition is off (`base.css`); the bar swap, drawer slide/fade and backdrop shade read the same signal. Morph change: two `duration: 0` returns. `bar.css` untouched (#287). **#349, keyboard navigation** - "Skip to the note" is the first Tab stop (shown only while focused). Places and notes lists are one Tab stop each (`roving.ts`, batched, writes only on change). Note landmark labelled; splitter focus bar 3px accent; Keyboard settings says Esc then Tab moves on. **Tests** (Chromium and WebKit, 1440): `keys-no-motion.spec.ts` (no running animation after Ctrl+\, Ctrl+K, Ctrl+, Ctrl+. and list arrows), `keys-tab.spec.ts` (note in at most 5 stops, one stop per list, accent ring on each stop, Esc then Tab leaves, Tab still nests list items). `shortcuts.spec` tooltip test fixed: it passed only while the old bar was fading out. `tabs.spec` "Notes keeps its editor" fails on clean dev too. **Typing cost** (1,000-note list, keystroke to paint, Chromium, shared machine so noisy, 5 interleaved runs each, an arrow key pressed first so the keyboard rule is on): | | median p50 | median p95 | |---|---|---| | dev | 77 ms | 262 ms | | this PR | 84 ms | 266 ms | A first version (rule on for every keystroke) measured median p95 329 ms against 276 ms with the rule removed, which is why typing now switches it off. Screenshots (Tab stops at 1440, narrow 320/360/375/390, light and dark, Chromium and WebKit) are on #349. 🤖 Generated with [Claude Code](https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Keyboard never animates; Tab reaches the note in a few stops (#344, #349)
Some checks failed
CI / server (pull_request) Successful in 21s
CI / rust (pull_request) Successful in 1m59s
CI / web (pull_request) Failing after 2m24s
b1ec5bea64
One input-source signal in packages/ui (data-last-input) switches off every CSS transition
after a key; script-driven motion (bar swap, drawer) reads it too. The attribute is written
only when it changes and reads "typing" while words go into a field, so typing does not pay
for the rule. Skip link, one Tab stop per list (roving focus), labelled note landmark,
thicker splitter ring.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Superseded by #376 (bar-stable timing fix). Closing.

Superseded by https://git.kayg.org/kayg/calternal/pulls/376 (bar-stable timing fix). Closing.
kayg closed this pull request 2026-10-14 21:56:38 +00:00
Some checks failed
CI / server (pull_request) Successful in 21s
CI / rust (pull_request) Successful in 1m59s
CI / web (pull_request) Failing after 2m24s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!361
No description provided.