don't break when you ctrl-click the background
[potlatch2.git] / net / systemeD / potlatch2 / controller / SelectedPOINode.as
index 7e8ae548baf989c60a1b8c33b9a8f17eb77021e3..ca236e6fd1b87ec791889a677c76aacfdc7053e5 100644 (file)
@@ -33,6 +33,9 @@ package net.systemeD.potlatch2.controller {
         
         override public function processMouseEvent(event:MouseEvent, entity:Entity):ControllerState {
                        if (event.type==MouseEvent.MOUSE_MOVE) { return this; }
+                       if (event.type==MouseEvent.MOUSE_DOWN && event.ctrlKey && entity && entity!=firstSelected) {
+                               return new SelectedMultiple([firstSelected,entity]);
+                       }
                        var cs:ControllerState = sharedMouseEvents(event, entity);
                        return cs ? cs : this;
         }