From 34956dc3c182095d64367f4b2be89af15aad11bf Mon Sep 17 00:00:00 2001 From: Olive Vaughn Date: Sun, 11 Oct 2026 00:08:12 -0400 Subject: [PATCH] In a lane, K's button is a new drawing, not a key It wore the channels' key mark, but in a lane K makes a drawing, as Flash's F6 does. There it is "drawing", a sheet with a line on it, and shift-K's is "blank", a bare sheet. On anything else K still keys. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011FLuCjp9kNH6ovwJVXSbq9 --- frontend/src/arthur/ui/icon.cljs | 6 +++++- frontend/src/arthur/ui/timeline.cljs | 21 +++++++++++++-------- static/arthur/app.css | 4 ++-- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/frontend/src/arthur/ui/icon.cljs b/frontend/src/arthur/ui/icon.cljs index 60d147a..f901403 100644 --- a/frontend/src/arthur/ui/icon.cljs +++ b/frontend/src/arthur/ui/icon.cljs @@ -61,7 +61,11 @@ :hold {:fill ["M1.5 8h2v2h-2z" "M8.5 2h2v2h-2z"] :stroke ["M3.5 9H9.5V4"]} ;; How an instance plays: through once into a stop, round, or one frame. :once {:fill ["M2.4 2.6 7.6 6 2.4 9.4z" "M8.4 2.6h1.4v6.8H8.4z"]} - :still {:stroke ["M3.5 2.5h5v7h-5z"] :fill ["M5 4.5h2v3H5z"]}}) + :still {:stroke ["M3.5 2.5h5v7h-5z"] :fill ["M5 4.5h2v3H5z"]} + ;; A new drawing in a lane: a sheet, with a line on it — the one at the + ;; playhead carried on — or bare. + :drawing {:stroke ["M3 1.5h4.5l2 2v7h-6.5z" "M4.6 7.8 5.9 6.1 7.4 7.3"]} + :blank {:stroke ["M3 1.5h4.5l2 2v7h-6.5z"]}}) (defn view "The glyph named `k`, sized by CSS and inked in `currentColor` — so a button's diff --git a/frontend/src/arthur/ui/timeline.cljs b/frontend/src/arthur/ui/timeline.cljs index 72eac76..8f00d74 100644 --- a/frontend/src/arthur/ui/timeline.cljs +++ b/frontend/src/arthur/ui/timeline.cljs @@ -676,14 +676,19 @@ ;; greyed, so the strip says what is possible here, and each says its key. (let [{:keys [lane?] hold? :span?} here] [:div.group.context-controls {:aria-label "selection"} - (when (or lane? one-node) - [:button {:title (if lane? - "a new drawing from the playhead on, copying the one there (K)" - "key the selection at the playhead (K)") - :on-click (run key-here)} "◆ key"]) - (when lane? - [:button {:title "a blank drawing from the playhead on (⇧K)" - :on-click (act [::ui/drawing-here false])} "□ blank"]) + ;; K IS TWO COMMANDS WITH ONE KEY, and the bar shows whichever this is: + ;; in a lane a new drawing, which is Flash's F6 and has nothing to do + ;; with a channel's key; anywhere else a key, in the inspector's mark. + (cond + lane? [:<> + [:button {:title "a new drawing from the playhead on, carrying on the one there (K)" + :on-click (run key-here)} + [icon/view :drawing] " drawing"] + [:button {:title "a blank drawing from the playhead on (⇧K)" + :on-click (act [::ui/drawing-here false])} + [icon/view :blank] " blank"]] + one-node [:button {:title "key the selection at the playhead (K)" + :on-click (run key-here)} "◆ key"]) (when hold? [:<> [:button {:aria-label "one frame shorter" :title "one frame shorter (−)" diff --git a/static/arthur/app.css b/static/arthur/app.css index d6a435c..6588525 100644 --- a/static/arthur/app.css +++ b/static/arthur/app.css @@ -1028,11 +1028,11 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); } .loc-fact::before, .loc-shared::before { content: "· "; color: var(--line); } .loc-shared { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 5px; } .loc .spacer { flex: 1; } -.creation-controls button { display: inline-flex; align-items: center; gap: 4px; } +.creation-controls button, .context-controls button { display: inline-flex; align-items: center; gap: 4px; } /* Wide enough for the widest speed it steps through, so the strip does not shift as it changes. */ .pane-head button.speed { min-width: 3.2em; font-variant-numeric: tabular-nums; } -.creation-controls svg { width: 11px; height: 11px; } +.creation-controls svg, .context-controls svg { width: 11px; height: 11px; } /* -------------------------------------------------------------------------- timeline */