update toolbox icons depending on what's selected (and add the useful W keypress)
[potlatch2.git] / net / systemeD / potlatch2 / controller / ControllerState.as
index 840508cb62a464e7d65a30300b921b049b149802..67f6572893f152cc2afb1642abeb13dee31d46a9 100644 (file)
@@ -48,6 +48,7 @@ package net.systemeD.potlatch2.controller {
                protected function sharedKeyboardEvents(event:KeyboardEvent):ControllerState {
                        switch (event.keyCode) {
                                case 68:        controller.map.paint.alpha=1.3-controller.map.paint.alpha; return null; // D
+                               case 87:        if (selectedWay) { return new SelectedWay(selectedWay); }; return null; // W
                                case 90:        MainUndoStack.getGlobalStack().undo(); return null;                                             // Z
                        }
                        return null;