I have a form
<form action="#" class="form">
<input class="form__input" type="text" name="name" required>
<input class="form__input" type="tel" name="tel" required>
<button class="form__button" type="submit">Submit</button>
</form>
and jQuery code
$('.form .form__input').keydown(function (event) {
if (event.keyCode == 13) {
event.preventDefault();
$(this).blur();
return false;
}
});
See in action: https://codepen.io/maxbeat/pen/XWXGZLM
I want only blur input field after press key Enter. PC and iOs devices work good, but Android after press key Enter go to next input field, how disable this?