ExtJs 的Enter特殊键事件处理

ExtJS 处理keyboard事件:


new Ext.form.TextField({

height : 24,
width : 225,
listeners : {
specialkey : function(field, e) {

if (e.getKey() == Ext.EventObject.ENTER) {

  window.event.keyCode = Ext.EventObject.TAB;
                                }
                            }
                        }

你可能感兴趣的:(ExtJs)