from the thread :make enter key work as tab in apex
got the code :
$(document).ready(function() {
$('input').keydown( function(e) {
var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;
if(key == 13) {
e.preventDefault();
var inputs = $(this).closest('form').find(':input:visible');
inputs.eq( inputs.index(this)+ 1 ).focus();
}
});
});
This works fine on tabular forms if there are existing records
but as soon as I hit [ Add Rows ]
hitting enter does not move the cursor
on Select controls too cursor doesn't work