aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/views/MainView.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index ea49ebd5d..fd76cbbd3 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -105,6 +105,12 @@ export class MainView extends React.Component {
if (e.key === "Escape") {
DragManager.AbortDrag();
SelectionManager.DeselectAll();
+ } else if (e.key === "z" && e.ctrlKey) {
+ e.preventDefault();
+ UndoManager.Undo();
+ } else if ((e.key === "y" && e.ctrlKey) || (e.key === "z" && e.ctrlKey && e.shiftKey)) {
+ e.preventDefault();
+ UndoManager.Redo();
}
}, false); // drag event handler
// click interactions for the context menu