footer: nullify enter key
Some checks failed
/ preview (pull_request) Successful in 40s
/ cleanup (pull_request) Failing after 32s
/ render (push) Successful in 43s

This commit is contained in:
Antoine Martin 2025-03-13 17:36:29 -04:00
parent 7ef8410cfc
commit f9e83086a3
Signed by: ayakael
GPG key ID: D62A472A4AA7D541
4 changed files with 79 additions and 11 deletions

View file

@ -35,6 +35,18 @@
<form method="post" action="https://notif.ilot.io/subscription/form" class="listmonk-form">
<!-- Converts enter key to tab -->
<script>
document.addEventListener('keydown', function (event) {
if (event.keyCode === 13 && event.target.nodeName === 'INPUT') {
var form = event.target.form;
var index = Array.prototype.indexOf.call(form, event.target);
form.elements[index + 1].focus();
event.preventDefault();
}
});
</script>
<input type="hidden" name="nonce" />
<input id="9c490" type="hidden" name="l" value="9c490957-b50b-4162-898d-92259e350cd6" />
<div class="t">
@ -45,7 +57,7 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<h5 class="modal-title" id="hcapatchamodallabel">Are you a robot?</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">