I have a small LayoutDialog in which I have put the Ext.form.TextField (please note that there is no form, I am just using the form.TextField library class). I also have an "OK" button added to my LayoutDialog. What I would like to do is if some one enters the value in the text box and press "enter/return" then the "OK" button should be clicked.
Would appreciate if someone could point out if I could achieve this by just using some config option.
Side question : Is it okay to use Ext.form.TextField anywhere ?, is it meant to be used only in form ?
Regards & thanks