fix(curriculum): add accessibility concern notes for accesskey in lecture (#67087)

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Jeevankumar S <jeevenkumar2003@gmail.com>
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Ayush Kumar Singh
2026-04-27 04:58:29 +05:30
committed by GitHub
parent bd0c98e9d1
commit 41bfbdc54d
@@ -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="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). - `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 :::interactive_editor