press R to reverse a way
authorAndy Allan <gravitystorm@gmail.com>
Sat, 1 May 2010 16:53:15 +0000 (16:53 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Sat, 1 May 2010 16:53:15 +0000 (16:53 +0000)
net/systemeD/potlatch2/controller/SelectedWay.as

index 0bbd224..651d666 100644 (file)
@@ -83,6 +83,7 @@ package net.systemeD.potlatch2.controller {
                override public function processKeyboardEvent(event:KeyboardEvent):ControllerState {
                        switch (event.keyCode) {
                                case 81:                                        Quadrilateralise.quadrilateralise(selectedWay); return this;
+                case 82:                    selectedWay.reverseNodes(MainUndoStack.getGlobalStack().addAction); return this;         
                                case Keyboard.BACKSPACE:        if (event.shiftKey) { return deleteWay(); } break;
                                case Keyboard.DELETE:           if (event.shiftKey) { return deleteWay(); } break;
                        }