Ext tab键事件和回车事件

 1 listeners: {
 2                          afterRender: function(thisForm, options){
 3                              this.keyNav = Ext.create('Ext.util.KeyNav', this.el, {
 4                                  enter: function(){//回车事件
 5                                      Ext.getCmp("codeInfoindex").focus(true);
 6                                  },
 7                                  tab:function(){//tab键事件
 8                                      Ext.getCmp("codeInfoindex").focus(true);
 9                                  },
10                                  scope: this
11                              });
12                          }
13                      }

 

posted @ 2014-08-07 10:01  大漠神驼  阅读(529)  评论(0编辑  收藏  举报