首页 > 代码库 > Ext tab键事件和回车事件

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: this11                              });12                          }13                      }