One table of keyboard shortcuts, and ? to see it

Space plays and pauses, and still pans when held and dragged on the stage.
Arrows and WASD step frames and jump between keys and cel edges; Home/End
and shift go to the first and last frame; alt-O toggles onion skin. The
tool, undo and clipboard keys move into the same table, which the ? sheet
prints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Olive Vaughn 2026-10-10 20:08:26 -04:00
parent fcf2e20f78
commit e96464459d
11 changed files with 232 additions and 73 deletions

View file

@ -0,0 +1,13 @@
(ns arthur.ui.shortcuts-test
(:require [cljs.test :refer [deftest is]]
[arthur.domain.sequence-test :as fixture]
[arthur.footage.store :as store]
[arthur.ui.shortcuts :as shortcuts]))
(deftest the-key-jumps-stop-on-every-cel-edge-and-key-the-timeline-shows
;; Cels at 0, 4 and 8; `:b` keyed on its own frames 0 and 1, which it shows
;; at 4 and 5; the plate keyed at 0 and 11. The lane's end, 12, is past the
;; last frame and is not somewhere to stand.
(let [id (store/install! {:clip (fixture/document) :store {}} "shortcut-stops")]
(is (= [0 4 5 8 11]
(vec (shortcuts/stops {:clip/current id :ui {:open :main}}))))))