Commit 9cbb99ad authored by Matthias Billert's avatar Matthias Billert
Browse files

Added EventListener

parent 9bb91156
......@@ -250,12 +250,12 @@ function handleTabChange(index) {
$('delete-option').style.display = 'none';
}
$(this).keyup(function(e){
if(e.keyCode == 8 || e.keyCode == 46) {
document.body.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