Ext 2.x的combo无法响应keyup事件的解决办法
定义combo的时候重写onKeyUp方法:
onKeyUp: function(e){ if(this.editable !== false && !e.isSpecialKey()){ this.lastKey = e.getKey(); this.dqTask.delay(this.queryDelay); } Ext.form.ComboBox.superclass.onKeyUp.call(this, e); }
?也别忘了设置
enableKeyEvents: true,
?
?参考了老外的解决办法:
http://forums.ext.net/showthread.php?3319-fire-keyup-event-for-combobox