     
     /**
      *  @private
-     *  Handle the ENTER event by closing the editor.
-     */
-    private function editor_enterHandler(event:FlexEvent):void
+     *  Special case for TextArea control. See editor_keyDownHandler.
+     *  ColorPicker also dispatches the "enter" event so keep the
+     *  parameter of type Event, not FlexEvent.
+     */
+    private function editor_enterHandler(event:Event):void
     {
         //trace("FlexEvent" );
-        gotFlexEnterEvent = true;
+        if (event is FlexEvent)
+            gotFlexEnterEvent = true;
     }
     
     /**

    private function editor_focusOutHandler(event:FocusEvent):void
    {
        //trace("editor_focusOutHandler " + event.relatedObject);
        if (event.relatedObject && 
            dataGrid.contains(event.relatedObject))
        {
            return;
        }
        
        // ignore textfields losing focus on mousedowns

import flash.display.InteractiveObject;
import flash.events.Event;
import flash.events.FocusEvent;
import flash.events.IEventDispatcher;
import flash.events.KeyboardEvent;
import flash.events.MouseEvent;
import flash.events.TimerEvent;
