如何在 ExtJs 的“specialkey”事件中获取源对象?
这是我的控制器代码:
init: function () {
this.control({
'login textfield[action=enter]': {
specialkey: this.on_KeyPress
}
});
}
.......................
on_KeyPress: function (f, e) {
if (e.getKey() == e.ENTER) {
Ext.Msg.alert('Keys', 'You pressed the Enter key');
*****I want to take 'textfield' object here*******
}
}
谢谢!