fix duplicate codemirror undo/reo

This commit is contained in:
Fred Sauer committed 2026-03-22 10:40:31 -07:00
1 parent 586a6530e5
commit e2ba41cf2e
1 file changed
+2 -2
+2 -2
View File
@@ -479,8 +479,8 @@ export class AssetEditorView implements ProjectView, pixed.EditorContext {
projectWindows.undofiles = [];
projectWindows.redofiles = [];
if (Mousetrap.bind) {
Mousetrap.bind('mod+z', projectWindows.undoStep.bind(projectWindows));
Mousetrap.bind('mod+shift+z', projectWindows.redoStep.bind(projectWindows));
Mousetrap.bind('mod+z', (e) => { projectWindows.undoStep(); return false; });
Mousetrap.bind('mod+shift+z', (e) => { projectWindows.redoStep(); return false; });
}
} else {
if (Mousetrap.unbind) {