Make Delete on a 1-length way behave the same as Escape. Closes #3363 (but note also...
authorRichard Fairhurst <richard@systemed.net>
Fri, 10 Dec 2010 17:52:20 +0000 (17:52 +0000)
committerRichard Fairhurst <richard@systemed.net>
Fri, 10 Dec 2010 17:52:20 +0000 (17:52 +0000)
net/systemeD/potlatch2/controller/DrawWay.as

index 21fe671..d2ad610 100644 (file)
@@ -215,6 +215,8 @@ package net.systemeD.potlatch2.controller {
                }
                
                protected function backspaceNode(performAction:Function):ControllerState {
+                       if (selectedWay.length==1) return keyExitDrawing();
+
                        var node:Node;
                        var undo:CompositeUndoableAction = new CompositeUndoableAction("Remove node");
                        var newDraw:int;