This commit is contained in:
Simon Martens
2026-01-08 18:23:48 +01:00
parent 93ea651c79
commit aff194f400
3 changed files with 144 additions and 125 deletions

View File

@@ -282,6 +282,19 @@ function FormLoad(form) {
});
}
document.addEventListener("keydown", (event) => {
if (event.key !== "Enter") {
return;
}
const target = event.target;
if (!(target instanceof HTMLElement)) {
return;
}
if (target.matches("textarea.no-enter")) {
event.preventDefault();
}
});
window.ShowBoostedErrors = ShowBoostedErrors;
window.GenQRCode = GenQRCode;
window.SelectableInput = SelectableInput;