Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7562 in a recent build.
  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    126
    Vote Rating
    0
    varunach is on a distinguished road

      0  

    Default TextArea selectOnFocus Keyboard Navigation

    TextArea selectOnFocus Keyboard Navigation


    Ext Version
    Whatever used in the API Documentation. I use 4.1.1

    Browser
    Chrome 22

    Description
    selectOnFocus not honored when navigating using keyboard tab. Works with mouse select. selectOnFocus honored for textfield for both keyboard and mouse.

    Steps to reproduces problem
    Create form. Add few textfieldareas with selectOnFocus : true and navigate using keyboard tabs

    Expected Result
    Previously entered text should be selected

    Result that occured:
    Focus goes to beginning of textared

    Test Case
    Code pasted from example in the textarea documentation and added additional fields to demonstrate tab navigation.

    Code:
    Ext.create('Ext.form.Panel', {
        title       : 'Sample TextArea',
        width       : 400,
        bodyPadding : 10,
        renderTo    : Ext.getBody(),
        items       : [
            {
                xtype         : 'textareafield',
                grow          : true,
                name          : 'message',
                fieldLabel    : 'Message',
                anchor        : '100%',
                value         : 'text area 1',
                selectOnFocus : true
            },
            {
                xtype         : 'textareafield',
                grow          : true,
                name          : 'message1',
                fieldLabel    : 'Message1',
                anchor        : '100%',
                value         : 'text area 2',
                selectOnFocus : true
            },
            {
                xtype         : 'textfield',
                grow          : true,
                name          : 'message2',
                fieldLabel    : 'Message3',
                anchor        : '100%',
                value         : 'text field',
                selectOnFocus : true
            }
        ]
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,399
    Vote Rating
    849
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.