         // ToDo: replace with universal scrolling scheme that provides same
         // experience as browser.
         var focusObj:Object = getFocus();
-        if ((focusObj is TextField) || (textViewClass && focusObj is textViewClass))
+        if ((focusObj is TextField) ||
+			(richEditableTextClass && focusObj is richEditableTextClass))
+		{
             return;
+		}
     
         // If the KeyBoardEvent can be canceled and a descendant has done so,
         // don't process it at all.  

        
        showInAutomationHierarchy = false;

        // If available, get soft-link to the TextView class to use in keyDownHandler().
        if (ApplicationDomain.currentDomain.hasDefinition("spark.components.RichEditableText"))
            textViewClass = Class(ApplicationDomain.currentDomain.getDefinition("spark.components.RichEditableText"));
    }

    //--------------------------------------------------------------------------

    
    /**
     *  @private
     *  Soft-link to RichEditableText class object, if available.
     */
    private var richEditableTextClass:Class;

    //--------------------------------------------------------------------------
    //
