fixed the issue of not being able to hit enter key to submit a form

This commit is contained in:
huangjx
2021-09-21 23:24:48 +08:00
parent 3032d4f859
commit 9a1d947589
5 changed files with 20 additions and 19 deletions

View File

@@ -18,13 +18,6 @@ $(document).on('ajaxSend', function (elm, xhr, settings) {
})
window.addEventListener('DOMContentLoaded', function () {
document.addEventListener("keydown", function (event) {
if (event.key === "Enter") {
event.preventDefault();
return false;
}
}
);
inputAction.run();
updatePage.run();
buttonActions.run();