diff --git a/Web/static/js/vnd_literallycanvas.js b/Web/static/js/vnd_literallycanvas.js index bc53231e..af65b2dc 100644 --- a/Web/static/js/vnd_literallycanvas.js +++ b/Web/static/js/vnd_literallycanvas.js @@ -6429,6 +6429,21 @@ tools.ToolWithStroke = ToolWithStroke = (function(superClass) { module.exports = tools; - },{}]},{},[22])(22) -}); \ No newline at end of file +}); + +document.addEventListener('keydown', function (e) { + const redoBtn = document.querySelector(".lc-redo") + const undoBtn = document.querySelector(".lc-undo") + + if (e.ctrlKey && undoBtn && redoBtn) { + if ((e.code === "KeyY") || (e.code === "KeyZ" && e.shiftKey)) { + e.preventDefault() + redoBtn.click() + } + else if (e.code === "KeyZ") { + e.preventDefault() + undoBtn.click() + } + } +})