Improve accessibility

This commit is contained in:
2021-05-05 13:48:59 +02:00
parent 502a94beb6
commit 2eba23149d
9 changed files with 41 additions and 18 deletions

View File

@@ -28,4 +28,11 @@
? area.classList.add("blurry")
: area.classList.remove("blurry");
});
// Enable keyboard steering for the navigation menu
document.getElementById("menu-icon").addEventListener("keydown", (evt) => {
if (evt.key == "Enter" || evt.key == " ") {
cbox.checked = !cbox.checked;
}
});
})();