mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-10-25 00:02:16 +00:00
fix duplicate codemirror undo/reo
This commit is contained in:
1 parent
586a6530e5
commit
e2ba41cf2e
1 file changed
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user