Keyboard shortcuts animate: Ctrl+\ slides the sidebar, Ctrl+K and arrow keys morph the bar #344

Closed
opened 2026-10-14 19:16:24 +00:00 by kayg · 2 comments
Owner

Rule (TASTE.md, round 3): keyboard actions never animate. Only the focus toggle (Ctrl+.) is instant today.

What I measured (1440 px, dark, Chromium, real key presses after clicking in the note then Esc, document.getAnimations() read right after the key):

Key Result
Ctrl+\ (show or hide places) grid-template-columns transition of 556 ms on the shell, pane opacity 160 to 180 ms, editor padding-left 556 ms. Sampled widths of the sidebar over time: 228, 228, 228, 143, 44, 12 px (about 240 ms of visible sliding). Text inside the sidebar squashes while it moves.
Ctrl+K (find) bar width transition 528 ms plus three layer animations (60 to 200 ms)
Ctrl+, (settings) bar width transition 528 ms, layer animations 60 and 100 ms
ArrowDown in the list bar width transition 528 ms (the bar re-morphs when the open note changes)
Ctrl+. (focus) no animation (this is the good one)

Shell.svelte already has instant = ui.lastInput === "keyboard" for the focus toggle; the sidebar column, the bar morph and the palette do not use it.

Suggested fix: route the sidebar column, the bar's width morph and the palette's layers through the same lastInput === "keyboard" switch (and set the transition durations to 0 for it), then add getAnimations() checks for these four keys to the e2e suite.

Found in kayg's overnight UI/UX hunt (#174). App = apps/web at train commit 2ea759c, run locally against the real server with a development user; mockup = https://preview.calternal.cloud.

**Rule (TASTE.md, round 3):** keyboard actions never animate. Only the focus toggle (`Ctrl+.`) is instant today. **What I measured** (1440 px, dark, Chromium, real key presses after clicking in the note then Esc, `document.getAnimations()` read right after the key): | Key | Result | |---|---| | `Ctrl+\` (show or hide places) | `grid-template-columns` transition of 556 ms on the shell, pane opacity 160 to 180 ms, editor `padding-left` 556 ms. Sampled widths of the sidebar over time: 228, 228, 228, 143, 44, 12 px (about 240 ms of visible sliding). Text inside the sidebar squashes while it moves. | | `Ctrl+K` (find) | bar width transition 528 ms plus three layer animations (60 to 200 ms) | | `Ctrl+,` (settings) | bar width transition 528 ms, layer animations 60 and 100 ms | | `ArrowDown` in the list | bar width transition 528 ms (the bar re-morphs when the open note changes) | | `Ctrl+.` (focus) | no animation (this is the good one) | `Shell.svelte` already has `instant = ui.lastInput === "keyboard"` for the focus toggle; the sidebar column, the bar morph and the palette do not use it. **Suggested fix:** route the sidebar column, the bar's width morph and the palette's layers through the same `lastInput === "keyboard"` switch (and set the transition durations to 0 for it), then add `getAnimations()` checks for these four keys to the e2e suite. Found in kayg's overnight UI/UX hunt (#174). App = `apps/web` at train commit 2ea759c, run locally against the real server with a development user; mockup = https://preview.calternal.cloud.
Author
Owner

Screenshots (all taken tonight, Chromium unless it says WebKit):

Before: Ctrl+\ not pressed yet
sidebar-0-before.png

Right after Ctrl+: the sidebar is mid-slide and its text is squashed, the editor is mid-move
sidebar-1-mid.png

After the move
sidebar-3-after.png

Screenshots (all taken tonight, Chromium unless it says WebKit): **Before: Ctrl+\ not pressed yet** ![sidebar-0-before.png](https://git.kayg.org/attachments/fca3086d-39d7-4af5-81e2-444b7221f64f) **Right after Ctrl+\: the sidebar is mid-slide and its text is squashed, the editor is mid-move** ![sidebar-1-mid.png](https://git.kayg.org/attachments/5d888a9a-6ec4-4d0e-a9c8-21360a80c035) **After the move** ![sidebar-3-after.png](https://git.kayg.org/attachments/615eb301-6885-43d2-80f9-5fa1e309a90f)
Author
Owner

PR #359

E2E keys-no-motion.spec.ts: after Ctrl+\, Ctrl+K, Ctrl+, Ctrl+. and list arrows, document.getAnimations() has nothing running (Chromium and WebKit, 1440). Before the change the same spec failed for the first four keys (sidebar padding, bar capsule, selector fades, palette shade). Mouse and touch keep their motion.

PR https://git.kayg.org/kayg/calternal/pulls/359 E2E `keys-no-motion.spec.ts`: after Ctrl+\\, Ctrl+K, Ctrl+, Ctrl+. and list arrows, `document.getAnimations()` has nothing running (Chromium and WebKit, 1440). Before the change the same spec failed for the first four keys (sidebar padding, bar capsule, selector fades, palette shade). Mouse and touch keep their motion.
kayg closed this issue 2026-10-14 22:41:02 +00:00
Sign in to join this conversation.
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#344
No description provided.