【发布时间】:2012-12-01 00:46:47
【问题描述】:
我正在使用 extjs 3.4。我需要禁用组合的 ENTER 键事件。我尝试使用以下代码但无法成功。请帮忙。
var combo = new Ext.form.comboBox({
id: 'id',
enableKeyEvents: true,
store: store,
triggerAction: 'all',
listeners: {
keydown: function(combo, e) {
var key = e.getKey();
if (key == e.ENTER) {
e.stopEvent();
}
}
}
});
以上行不通。仍然输入事件适用于组合。请帮忙。
【问题讨论】:
标签: events extjs combobox enter