The accesskey attribute, despite its potential utility, is fraught with numerous issues that limit its effectiveness and
usability:
accesskey largely depends on the browser used, as they rely on browsers for much of their
functionality. Some screen readers may repeatedly indicate the accesskey value each time the element is encountered, potentially causing
unnecessary repetition and noise for the user.
accesskey shortcuts and other keyboard shortcuts, such as those of browsers, operating systems, assistive technologies,
or browser extensions, are frequent. This overlap can lead to uncertainty and potentially trigger unintended actions, causing user confusion.
accesskey
shortcuts. Typically, screen reader shortcuts take precedence, disabling the accesskey but preserving screen reader functionality.
However, this can cause confusion for users attempting to activate an accesskey.
accesskey shortcut that works in an English browser may conflict in the same browser set in another
language due to different menu naming conventions.
accesskey shortcuts.
Given these concerns, it is generally recommended to avoid using accesskeys.
function div() {
return <div accessKey="h" />;
}
Do not use accesskeys at all.
function div() {
return <div />;
}