Forum Moderators: open
How many users ever learn keyboard shortcuts?
Accessibility concerns
Avoid using the tabindex attribute in conjunction with non-interactive content to make something intended to be interactive focusable by keyboard input. An example of this would be using a <div> element to describe a button, instead of the <button> element.
Interactive components authored using non-interactive elements are not listed in the accessibility tree. This prevents assistive technology from being able to navigate to and manipulate those components. The content should be semantically described using interactive elements (<a>, <button>, <details>, <input>, <select>, <textarea>, etc.) instead. These elements have built-in roles and states that communicate status to the accessibility that would otherwise have to be managed by ARIA.
Source: [developer.mozilla.org...]
Avoid using tabindex values greater than 0. Doing so makes it difficult for people who rely on assistive technology to navigate and operate page content. Instead, write the document with the elements in a logical sequence.
Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
Avoid using tabindex=1+ [...] It’s when tabindex is set to a positive integer that things get problematic. It imposes a tab order on the content that bears no resemblance to the expected tab order.
Source: https://www.tpgi.com/using-the-tabindex-attribute/
[...] it only struck me earlier this year that any web-app I write really ought to have keyboard navigability and operability as standard.
To be fully accessible, a web page must be operable by someone using only a keyboard to access and control it. This includes users of screen readers, but can also include users who have trouble operating a pointing device such as a mouse or trackball, or whose mouse is not working at the moment, or who prefer to use a keyboard for input whenever possible.
Source: [developer.mozilla.org...]