listeners: {
afterRender: function (thisForm, options) {
var els = Ext.DomQuery.select('input[type!=hidden]');
Ext.create("Ext.util.KeyMap", this.el, {
key: 13,
fn: function (key, e) {
var el = e.target, target = els, ln = target.length;
for (var i = 0; i < ln; i++) {
if (target[i] == el) {
if (i + 1 == ln) {
target[0].focus();
} else {
target[i + 1].focus();
}
}
}
},
scope: this
});
}
},