Skip to content

Commit

Permalink
[#191] Also Use Backspace to Delete Objects
Browse files Browse the repository at this point in the history
Add the Back Space key as an alternative to the Delete key for removing
objects from a Document.

Fixes #191
  • Loading branch information
prikhi committed Oct 28, 2015
1 parent 853fd99 commit c272a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/content/pencil/bindings/pCanvas.xbl
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@
event.preventDefault();
Dom.emitEvent("p:ShapeGeometryModified", this, {setter: null});
} else if (event.keyCode == event.DOM_VK_DELETE) {
} else if (event.keyCode == event.DOM_VK_DELETE || event.keyCode == event.DOM_VK_BACK_SPACE) {
if (this.currentController) {
this.run(function () {
this.currentController.deleteTarget();
Expand Down

0 comments on commit c272a91

Please sign in to comment.