Improve accessibility
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user