I know this is not the smartest idea, but I still need to do this. Our users want to use ENTER as a TAB. So, the best I came up with is:
Ext.override(Ext.form.field.Base, { initComponent: function() { this.callParent(arguments); this.on('afterrender', function() { var me=this; this.getEl().on('keypress',function (e){ if(e.getKey() == 13) { me.nextNode().focus(); } }); }); } });
But it still doesn't work exactly like TAB. I mean, it works fine with input fields, but not with other controls. Maybe there is a low-level solution. Any ideas?
source share