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;
                                }
                            }
                        }

posted on 2009-06-17 08:39  Simon Han  阅读(1261)  评论(0编辑  收藏  举报