Android xtype textfield上的Sencha触摸键盘下一步按钮

Android xtype textfield上的Sencha触摸键盘下一步按钮,android,cordova,sencha-touch-2,Android,Cordova,Sencha Touch 2,以下是我的简单登记表Sencha代码: xtype: 'fieldset', items: [ { name: 'name', id: 'rename', xtype: 'textfield', placeHolder: 'Name*', tabIndex: 1 }, { name: 'emailfield', id: 'reemailid',

以下是我的简单登记表Sencha代码:

xtype: 'fieldset',
items: [
    {
        name: 'name',
        id: 'rename',
        xtype: 'textfield',
        placeHolder: 'Name*',
        tabIndex: 1
    },
    {
        name: 'emailfield',
        id: 'reemailid',
        xtype: 'emailfield',
        placeHolder: 'email@example.com*',
        tabIndex: 2
    },
    {
        name: 'password',
        id: 'repassword',
        xtype: 'passwordfield',
        placeHolder: 'Password*',
        tabIndex: 3
    },
    {
        name: 'confpassword',
        id: 'reconfpassword',
        xtype: 'passwordfield',
        placeHolder: 'Confirm Password*',
        tabIndex: 4
    },
    {
        name: 'address',
        id: 'readdress',
        xtype: 'textareafield',
        placeHolder: 'Address*',
        tabIndex: 5
    },
    {
        name: 'dob',
        id: 'redob',
        placeHolder: 'Date Of Birth',
        xtype: 'datepickerfield',
        destroyPickerOnHide: true,
        picker: {
            yearFrom: 1960
        },
        tabIndex: 6
    }
]

当我在安卓键盘上填写表格时,安卓键盘右下角有一个“Go”按钮,帮助我们提交表格。但我想要一个“下一步”按钮,它会将我带到下一个字段,我的意思是,如果我填写姓名并按下Android键盘上的“下一步”按钮,那么它会将我带到电子邮件。

每当按下“返回”或“去”键时,
操作
事件就会在
文本字段
上触发。您应该利用它在下一个字段上调用
focus
方法

类似的东西可以在Android上运行,但没有在iOS上进行测试

Ext.define('Fiddle.view.Main', {

    extend: 'Ext.Container',

    config: {
        fullscreen: true,
        styleHtmlContent: true,
        items: [
            {
                xtype: 'textfield',
                label: 'First field',
                listeners: {
                    action: function() {
                        Ext.getCmp('field_2').focus();
                    }
                }
            },
            {
                id: 'field_2',
                xtype: 'textfield',
                label: 'Second field'
            }
        ]
    }

});
工作示例:

[编辑]

以前的解决方案仍然有效,但我发现了以下链接问题:


这是在本机Android项目上完成的,并在应用程序范围内修改“Go”按钮的行为。请查看。

您正在为android制作此应用程序吗?