1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    11
    Vote Rating
    0
    Answers
    1
    willem.goossens is on a distinguished road

      0  

    Default Answered: SearchField in form panel is not treated like a html searchfield on iPhone or Android

    Answered: SearchField in form panel is not treated like a html searchfield on iPhone or Android


    Hello, can someone please help me? I have defined a search field in a form panel, but when I test my app by tapping on the search field on my iPhone or Android a keyboard shows up, but without any search key. What must I do to let show a search key instead of an enter key on the keyboard of the smartphone in case of using search field?

    Code:
    Ext.define('Test.controller.Main', {
        extend : 'Ext.app.Controller',
    
    
        init : function() {
            this.control({
                'searchfield' : {
                    action : 'onSearch'
                }
            });
        },
        onSearch : function(field) {
            console.debug('onSearch');
        }
    });
    
    
    Ext.application({
        name : 'Test',
        controllers : ['Main'],
        launch : function() {
            new Ext.form.Panel({
                fullscreen : true,
                items : [{
                    docked : 'top',
                    flex : 10,
                    xtype : 'searchfield',
                    name : 'search',
                    label : 'search'
                }]
            });
        }
    });

  2. What version are you using as this shows the Search button in the keyboard:

    Code:
    new Ext.form.Panel({
        fullscreen : true,
        items      : [
            {
                xtype : 'searchfield'
            }
        ]
    });

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,599
    Vote Rating
    434
    Answers
    3102
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    What version are you using as this shows the Search button in the keyboard:

    Code:
    new Ext.form.Panel({
        fullscreen : true,
        items      : [
            {
                xtype : 'searchfield'
            }
        ]
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    11
    Vote Rating
    0
    Answers
    1
    willem.goossens is on a distinguished road

      0  

    Default I am not sure but i think sencha-touch-2-b1

    I am not sure but i think sencha-touch-2-b1


    I am not sure but I think sencha-touch-2-b1, is that the wrong one?

  5. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    11
    Vote Rating
    0
    Answers
    1
    willem.goossens is on a distinguished road

      0  

    Default


    Upgrade to sencha-touch-2- rc solved the problem.