From 41bfbdc54dd4a30c74f99c59f33860513aefd997 Mon Sep 17 00:00:00 2001 From: Ayush Kumar Singh Date: Mon, 27 Apr 2026 04:58:29 +0530 Subject: [PATCH] fix(curriculum): add accessibility concern notes for accesskey in lecture (#67087) Co-authored-by: Copilot Co-authored-by: Jeevankumar S Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../672a55fbc2d95a9453151caf.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/blocks/lecture-accessible-media-elements/672a55fbc2d95a9453151caf.md b/curriculum/challenges/english/blocks/lecture-accessible-media-elements/672a55fbc2d95a9453151caf.md index 6f0a45e198a..46cd3e6b345 100644 --- a/curriculum/challenges/english/blocks/lecture-accessible-media-elements/672a55fbc2d95a9453151caf.md +++ b/curriculum/challenges/english/blocks/lecture-accessible-media-elements/672a55fbc2d95a9453151caf.md @@ -68,7 +68,11 @@ Here is an interactive example you can try out following the suggestions below ( - `accesskey="c"` sets the key `C` to the `Cancel` button, allowing users to activate it using `ALT + C` (Windows) and `CTRL + Option + C` (Mac). - `accesskey="h"` assigns the key `H` to the `Home` link, allowing users to navigate to the homepage using `ALT + H` (Windows) and `CTRL + Option + H` (Mac). -Please note that the exact key combination to activate the accesskey might vary depending on the browser and operating system. It's typically `ALT + Specified Key` on Windows and `CTRL + Option + Specified Key` on Mac. +Please note that the exact key combination to activate the `accesskey` might vary depending on the browser and operating system. It's typically `ALT + Specified Key` on Windows and `CTRL + Option + Specified Key` on Mac. + +The `accesskey` attribute can be problematic because it may conflict with existing shortcuts or behave inconsistently across devices and keyboards, and is often not intuitive for users to discover or remember. + +If you choose to use `accesskey`, it should be done with clear guidance to users, but in most cases it's better to avoid `accesskey` in websites and web applications. :::interactive_editor