         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))

    
    /**
     *  @private
     *  Handle the ENTER event by closing the editor.
     */
    private function editor_enterHandler(event:FlexEvent):void
    {
        //trace("FlexEvent" );
        gotFlexEnterEvent = true;
    }
    
    /**

import spark.components.Grid;
import spark.events.GridEvent;
import spark.events.GridItemEditorEvent;

use namespace mx_internal;

