From 14b0d6fa85d93abd8c685e5e707120a519740e7e Mon Sep 17 00:00:00 2001 From: Olive Vaughn Date: Sun, 11 Oct 2026 00:44:10 -0400 Subject: [PATCH] The bar keys nothing; it makes a symbol or a lane with a + A key on a selected node was one button for what K, auto-key and the inspector's marks already do where the value is, so the bar no longer offers it. In a lane it still offers a drawing and a blank. The create buttons read "+ symbol" and "+ lane", as the pool's does. Co-Authored-By: Claude Opus 5.5 --- frontend/src/arthur/ui/timeline.cljs | 30 +++++++++++++--------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/frontend/src/arthur/ui/timeline.cljs b/frontend/src/arthur/ui/timeline.cljs index 08fdf0e..73dd02b 100644 --- a/frontend/src/arthur/ui/timeline.cljs +++ b/frontend/src/arthur/ui/timeline.cljs @@ -673,23 +673,21 @@ [:span.sep] ;; WHAT THE SELECTION CAN HAVE DONE TO IT, and nothing else. A drawing in ;; a lane takes a new drawing and a longer hold; a symbol placed anywhere - ;; takes a cut and a longer span; a node takes a key and a peg. Shown, not + ;; takes a cut and a longer span; a node takes a peg. Shown, not ;; 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"} - ;; 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"]) + ;; In a lane, K is a new drawing, which is Flash's F6 and has nothing + ;; to do with a channel's key. Keying a node stays on the key: auto-key + ;; and the inspector's marks already do it where the value is. + (when 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"]]) (when hold? [:<> [:button {:aria-label "one frame shorter" :title "one frame shorter (−)" @@ -723,10 +721,10 @@ [:div.group.creation-controls {:aria-label "create"} [:button {:title "create a symbol in the selected location (N)" :on-click (act [::ui/new-symbol :inside])} - [icon/view :symbol] " symbol"] + [icon/view :symbol] " + symbol"] [:button {:title "create a lane in the selected location (⇧N)" :on-click (act [::ui/new-lane])} - [icon/view :lane] " lane"]] + [icon/view :lane] " + lane"]] [:button.auto-key {:class (when auto? "on") :aria-pressed auto? :title (if auto?