I have a simple fabric js based application where I will let users add shapes connect them and animate them.
Following is my JS
var canvas; window.newA
you can delete active object by using backspace key
$(document).keydown(function(event){ if (event.which == 8) { if (canvas.getActiveObject()) { canvas.getActiveObject().remove(); } } });