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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FLuCjp9kNH6ovwJVXSbq9
This commit is contained in:
Olive Vaughn 2026-10-11 00:08:12 -04:00
parent 571e80d975
commit 34956dc3c1
3 changed files with 20 additions and 11 deletions

View file

@ -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

View file

@ -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 (−)"