basic AutoComplete component and sample support. Needs much more work on the P2 logic...
[potlatch2.git] / net / systemeD / potlatch2 / EditController.as
index f6cdb3f0c607c60a90ba7c6c90ebb6d5552f4b79..2ca88c3d24a0e6fa0f424cd27e1fcfd43b7cdbfb 100644 (file)
@@ -77,7 +77,7 @@ package net.systemeD.potlatch2 {
                }
 
         private function mapMouseEvent(event:MouseEvent):void {
-            map.stage.focus = map.parent;
+            if (event.type!=MouseEvent.ROLL_OVER) map.stage.focus = map.parent;
             if (event.type==MouseEvent.MOUSE_UP && map.dragstate==map.DRAGGING) { return; }
             
             var mapLoc:Point = map.globalToLocal(new Point(event.stageX, event.stageY));
@@ -89,7 +89,7 @@ package net.systemeD.potlatch2 {
         }
         
         public function entityMouseEvent(event:MouseEvent, entity:Entity):void {
-            map.stage.focus = map.parent;
+            if (event.type!=MouseEvent.ROLL_OVER) map.stage.focus = map.parent;
             //if ( event.type == MouseEvent.MOUSE_DOWN )
             event.stopPropagation();