This commit is contained in:
j264415 2025-05-26 06:08:26 +01:00 committed by GitHub
commit 91023ee54c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

@ -57,6 +57,18 @@ class ControlsWaiter {
}
}
/**
* Checks or unchecks the Auto Bake checkbox with "Enter"
* @param {Event} ev
*/
autoBakeKeyboardHandler(ev) {
const checkBox = document.getElementById("auto-bake");
ev.preventDefault();
if (ev.key === "Enter" || ev.key === " ") {
checkBox.checked = !checkBox.checked;
}
}
/**
* Handler to trigger baking.