Printable View
Quote: Originally Posted by wan1976 I have tried those ways to implement the on event method, but they are all not worked. However I found this snippet code worked: new Ext.form.TextField({ height : 24, width : 225, listeners : { specialkey : function(field, e) { if (e.getKey() == Ext.EventObject.ENTER) { that works!!!...thank's a lot! ;)
By default textfields not able to fire the events. you must be use xtype:'textfield', fieldLabel:'height(cm)', enableKeyEvents:true, listeners:{ keyup :function(t,e){alert('keyup '+t)} }