ExtJS TextField Enter Key After Click External Button
extjs
Solution
Ext.getCmp('btnSearch').focus();
I Dont Think It But Its Working For Me :)
Thanks For All
Problem
I want to call button click in textfield enter function. ``` items: [ { xtype: 'form', id: 'myForm', items: [ { xtype: 'textfield', id: 'myTextField', listeners: { specialkey: function(f,e){ if(e.getKey() == e.ENTER){ console.log('Spacial Key = Enter'); // It's working // But i wanna click btnSearch button click event } } } } ], buttons: [ { text: 'Search', id: 'btnSearch', handlers: function(){ // bla bla // bla bla // ... } } ] } ] var myform = Ext.getCmp('myForm'); myForm.getForm().submit() ``` It's working but btnSubmit.click function not working