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:
parent
571e80d975
commit
34956dc3c1
3 changed files with 20 additions and 11 deletions
|
|
@ -61,7 +61,11 @@
|
||||||
:hold {:fill ["M1.5 8h2v2h-2z" "M8.5 2h2v2h-2z"] :stroke ["M3.5 9H9.5V4"]}
|
: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.
|
;; 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"]}
|
: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
|
(defn view
|
||||||
"The glyph named `k`, sized by CSS and inked in `currentColor` — so a button's
|
"The glyph named `k`, sized by CSS and inked in `currentColor` — so a button's
|
||||||
|
|
|
||||||
|
|
@ -676,14 +676,19 @@
|
||||||
;; greyed, so the strip says what is possible here, and each says its key.
|
;; greyed, so the strip says what is possible here, and each says its key.
|
||||||
(let [{:keys [lane?] hold? :span?} here]
|
(let [{:keys [lane?] hold? :span?} here]
|
||||||
[:div.group.context-controls {:aria-label "selection"}
|
[:div.group.context-controls {:aria-label "selection"}
|
||||||
(when (or lane? one-node)
|
;; K IS TWO COMMANDS WITH ONE KEY, and the bar shows whichever this is:
|
||||||
[:button {:title (if lane?
|
;; in a lane a new drawing, which is Flash's F6 and has nothing to do
|
||||||
"a new drawing from the playhead on, copying the one there (K)"
|
;; with a channel's key; anywhere else a key, in the inspector's mark.
|
||||||
"key the selection at the playhead (K)")
|
(cond
|
||||||
:on-click (run key-here)} "◆ key"])
|
lane? [:<>
|
||||||
(when lane?
|
[:button {:title "a new drawing from the playhead on, carrying on the one there (K)"
|
||||||
[:button {:title "a blank drawing from the playhead on (⇧K)"
|
:on-click (run key-here)}
|
||||||
:on-click (act [::ui/drawing-here false])} "□ blank"])
|
[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?
|
(when hold?
|
||||||
[:<>
|
[:<>
|
||||||
[:button {:aria-label "one frame shorter" :title "one frame shorter (−)"
|
[:button {:aria-label "one frame shorter" :title "one frame shorter (−)"
|
||||||
|
|
|
||||||
|
|
@ -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-fact::before, .loc-shared::before { content: "· "; color: var(--line); }
|
||||||
.loc-shared { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 5px; }
|
.loc-shared { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 5px; }
|
||||||
.loc .spacer { flex: 1; }
|
.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
|
/* Wide enough for the widest speed it steps through, so the strip does not
|
||||||
shift as it changes. */
|
shift as it changes. */
|
||||||
.pane-head button.speed { min-width: 3.2em; font-variant-numeric: tabular-nums; }
|
.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 */
|
timeline */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue