add simple undo/redo #116
Merged
maxime.batista
merged 1 commits from undo-redo
into master
1 year ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'undo-redo'
Deleting a branch is permanent. It CANNOT be undone. Continue?
This pull request adds a simple undo/redo for the step contents
stepsVersions.set(stepId!, versions)
}
versions.insertAndCut(content)
It should account for recursive updates in the subtree by not saving it the current version stack.
if (!e.ctrlKey) return
if (e.key == "z" || e.key == "y") {
console.log(e.key, stepsVersions)
stepsVersions.set(stepId!, versions)
}
console.log(versions)
4ea531c08c
into master 1 year agoReviewers
4ea531c08c
.