Improve accessibility

This commit is contained in:
Siphalor committed 2021-05-05 13:48:59 +02:00
1 parent 502a94beb6
commit 2eba23149d
9 files changed
+41 -18

No files matched your search

+7
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;
}
});
})();