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 <noreply@anthropic.com>
This commit is contained in:
Olive Vaughn 2026-10-11 00:44:10 -04:00
parent f0af8d392a
commit 14b0d6fa85

View file

@ -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? [:<>
;; 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"]]
one-node [:button {:title "key the selection at the playhead (K)"
:on-click (run key-here)} "◆ key"])
[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?