mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 05:14:24 +00:00
A FormDialog with history keeps an EditHistory of its value while it is open. Undo and Redo reach it through Commands::take_step, after a focused text field's own steps. A change becomes a step once no gesture runs in the body: runtime::edit::watch_gestures says whether a component's gesture ran inside the body call, counted at the apply step. ParamDialog takes the history prop; the Contour editor and the ParamDialog stories turn it on.