我想处理combobox的keypress事件,但是捕捉不到呢,keydown事件也捕捉不到,但是blur事件可以,请问这是怎么回事,我的代码
this.combobox1.on("keypress", this.kpEvent, this);
this.kpEvent: function(e){}; 求助于各位
this.combobox1.on("keypress", this.kpEvent, this);
this.kpEvent: function(e){}; 求助于各位
所以继承自该类的所有类,包括ComboBox,在默认情况下是无法直接使用keydown等事件的,但是可以使用specialkey事件
如果要用键盘类事件,把enableKeyEvents属性设置为true就可以了