enabling keypress in fields
in extjs API docs at http://www.extjs.com/deploy/dev/docs it's mentioned you can attach key events, however in config it never list the enableKeyEvents parameters (forgot about it??). So basically what you need to do is add the parameter then attach the events as such:
var field = new Ext.form.TextField({ enableKeyEvents: true }); field.on('keypress', function() { //set code });
thats all... if your keypress still not working, just ensure you are working on ext 2.1 ![]()
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

And how do I manage to keyscroll through a combobox? I guess this is the listener I have to add, but I don’t know what to put inside the function…
thanks for answering!