Add Undo/Redo
Closed this issue · 0 comments
ai commented
- Add hotkey listeners to
view/base/index.ts
:Cmd+Z
/Ctrl+Z
for undo andCmd+Y
/Cmd+Shift+Z
/Ctrl+Y
/Ctrl+Shift+Z
for redo - Add
stores/history.ts
to listen forcurrent
store and save values. The hotkey listeners should just call functions from this store, most logic should be here. - Test that everything works (doesn’t matter where is the focus, works in different browsers)
- Update Size Limit if necessary (but try to avoid using libraries)