         // represented by (-1, -1), even when the Sprite has focus.
         // But then no insertion point blinks and you can't enter any text.
         // So if this component is in that state when it takes focus,
-        // it changes the selection to (0, 0).
-        if (selectionAnchorPosition == -1 && selectionActivePosition == -1)
-            setSelection(int.MAX_VALUE, int.MAX_VALUE);
-
-        // Only editable text should have a focus ring.
-        if (focusManager && editable)
-            focusManager.showFocusIndicator = true;
+        // it changes the selection to the end of the text.
+        if (enabled && editable)
+        {
+            if (selectionAnchorPosition == -1 && selectionActivePosition == -1)
+            {
+                setSelection(int.MAX_VALUE, int.MAX_VALUE);
+            }
+            
+            // Only editable text should have a focus ring.
+            if (focusManager)
+                focusManager.showFocusIndicator = true;
+        }
         
         super.focusInHandler(event);
     }


    [Bindable("change")]
    [Bindable("textChanged")]
    
    /**
     *  The text String displayed by this component.
     */

            displayAsPasswordChanged = false;
        }

        if (enabledChanged)
        {
            textView.enabled = super.enabled;
            enabledChanged = false;
        }
        
        if (editableChanged)
        {
            textView.editable = _editable;
