在formPanel中加 keys:[{ //处理键盘回车事件   
        key:Ext.EventObject.ENTER,   
        fn:addfun,   
        scope:this  
    }]  
addfun添加函数