press R to reverse a way
[potlatch2.git] / net / systemeD / potlatch2 / controller / SelectedWay.as
index 0bbd224c7af9ed30b3116fc65b4ff4e55d32c9e1..651d666ef7e6784310b3d664a555ef9c6d23ffe3 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;
                        }