▶ ENTER key submit

ref #26
This commit is contained in:
Philipp Dormann 2021-01-07 20:23:45 +01:00
parent 0c3e74f8a3
commit 80d30a8e54

View File

@ -25,6 +25,12 @@
if (e.key === "Escape") { if (e.key === "Escape") {
modal_open = false; modal_open = false;
} }
if (e.keyCode === 13) {
if (createbtnenabled === true) {
createbtnenabled = false;
submit();
}
}
}; };
})(); })();
function submit() { function submit() {