Commit 2b52154b authored by Matthias Billert's avatar Matthias Billert
Browse files

New version

parent 82b8596e
......@@ -250,12 +250,14 @@ function handleTabChange(index) {
$('delete-option').style.display = 'none';
}
activeCanvas.addEventListener('keyup', function(e) {
for (var i = 0; i < canvases.length; i++) {
canvases[i].addEventListener('keyup', function(e) {
if(e.keyCode == 8 || e.keyCode == 46) {
activeCanvas.getActiveObjects().forEach((obj) => { activeCanvas.remove(obj) });
activeCanvas.discardActiveObject().renderAll();
}
});
}
drawingColorEl = $('drawing-color'),
drawingLineWidthEl = $('drawing-line-width'),
......
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