keyboard shortcut for Undo, plus gratuitous use of ternary operator
[potlatch2.git] / net / systemeD / potlatch2 / controller / NoSelection.as
index 83bdb05..e40eaa0 100644 (file)
@@ -28,8 +28,12 @@ package net.systemeD.potlatch2.controller {
                                return new DrawWay(way, true, false);
                        }
                        var cs:ControllerState = sharedMouseEvents(event, entity);
-                       if (cs) return cs;
-                       return this;
+                       return cs ? cs : this;
+               }
+               
+               override public function processKeyboardEvent(event:KeyboardEvent):ControllerState {
+                       var cs:ControllerState = sharedKeyboardEvents(event);
+                       return cs ? cs : this;
                }
                
         override public function enterState():void {