Removing Object(s), Anything Selected, from FabricJS Canvas on Delete Key
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I can currently delete selected objects on my FabricJS canvas with a button but I'd like to be able to press Delete/Backspace to remove anything that is selected.

Here's some code that I'm tinkering with now, which has the delete functionality via a button. Add Accents 1 and 2 for example, and choose the Delete button to see what I mean; I'd like to be able to do this with my keyboard, basically:

Thanks in advance. Please let me know if I can provide more info that'll help you to create a solution.

awarded to Wuddrum

Crowdsource coding tasks.

1 Solution

Winning solution

This should do: JSFiddle

Beautiful, thank you!
sharper over 1 year ago