I have the following script
$('.formfield:not(.NoHighlight, #P_PH_PHONE, #P120_PH_EMAIL) :input').focus(function(e){
var currentElementonForm = $(this);
if(currentElementonForm.is("input[type=submit]")){
currentElementonForm.parents('form').submit();
}
});
Currently, the page submits when a user tabbed (keyborad TAB button) to the submit button. I would like to stop this but only do it when a user clicked not tabbed to the button. Hopefully, the question is clear and happy to give anymore details. I did try detecting e.keyCode == 9 but it logs it as "undefined".