Skip to content

Commit

Permalink
Added backspace shortcut for deleting shapes.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasRychtecky committed May 12, 2012
1 parent e4b534f commit 52dbc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pencil-2.0/app/content/pencil/bindings/pCanvas.xbl
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,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 52dbc37

Please sign in to comment.