diff --git a/index.html b/index.html index 42f70b7..19e484a 100644 --- a/index.html +++ b/index.html @@ -190,6 +190,7 @@ + \ No newline at end of file diff --git a/js/shortcuts.js b/js/shortcuts.js new file mode 100644 index 0000000..5397d55 --- /dev/null +++ b/js/shortcuts.js @@ -0,0 +1,8 @@ +// Listen for shortcuts +keyboard.onShortcut({ctrl: true, key: "KeyZ"}, () => { + commands.undo(); +}); + +keyboard.onShortcut({ctrl: true, key: "KeyY"}, () => { + commands.redo(); +});