Fixed tab going to next tab index

Edited event.preventDefault to tab case.