Commit c2b514bc authored by Matthias Billert's avatar Matthias Billert
Browse files

DrawingMode = false

parent 46caa687
......@@ -255,6 +255,7 @@ function handleTabChange(index) {
for (var i = 0; i < canvas.length; i++) {
canvas[i].addEventListener('keyup', function(e) {
if(e.keyCode == 8 || e.keyCode == 46) {
activeCanvas.isDrawingMode = false;
activeCanvas.getActiveObjects().forEach((obj) => { activeCanvas.remove(obj) });
activeCanvas.discardActiveObject().renderAll();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment