         if (event.isDefaultPrevented())
         {
             // Special case the ENTER key since TextArea cancels the ENTER when it 
-            // doesn't use it but instead if dispatched an FlexEvent.ENTER.
+            // doesn't use it but instead it dispatches an FlexEvent.ENTER.
             // The problem is the ENTER event does not have the control and 
             // shift key flags we need.
             if (!(event.charCode == Keyboard.ENTER && gotFlexEnterEvent))

import spark.components.Grid;
import spark.events.GridEvent;
import spark.events.GridItemEditorEvent;
import mx.core.IVisualElementContainer;
import flash.events.IEventDispatcher;

use namespace mx_internal;


    private function editor_focusOutHandler(event:FocusEvent):void
    {
        //trace("editor_focusOutHandler " + event.relatedObject);
        
        // If the focus goes to a component that is owned by the editor, 
        // then don't end the editor session.
        if (event.relatedObject)
        {
            var component:IUIComponent = getIUIComponent(event.relatedObject);
            if (component && editorOwns(component))
                return;                
        }
        
        // ignore textfields losing focus on mousedowns
