3 Replies Latest reply on Nov 23, 2010 8:43 AM by JabbyPandaUA

    Pressing Keyboard.UP key in s:TextInput brings the cursor caret to the beginning

    JabbyPandaUA Level 3

      Sample code:

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                     xmlns:s="library://ns.adobe.com/flex/spark" 
                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">      
          <s:layout>
              <s:VerticalLayout paddingTop="10" paddingLeft="10"/>
          </s:layout>    
          <s:TextInput id="textInput">
              
          </s:TextInput>
          <mx:TextInput id="textInput2">
              
          </mx:TextInput>
      </s:Application>
      
       
      

       

       

      To reproduce:

      1 ) Place the focus into Spark TextInput or Halo TextInput

      2) Enter some text, for example "123456"

      3) Press Keyboard.UP key

      4) Notice, that caret cursor is moved from the end to the beginning of the entered text

       

      Interactive sample : http://jabbypanda.com/sample_case/TextInputCaret/TextInputCaretPosition.html

       

      Is it a bug?