roving tabindex

A technique where only the active item in a group has tabindex="0" and the rest have tabindex="-1", so the group is one tab stop and arrow keys move between items.

In more detail

When the user presses an arrow key, the code moves tabindex 0 to the next item and calls focus() on it. Tab then leaves the group entirely. It is used for menus, toolbars, tab lists and radio groups, and should skip disabled items.

Related terms

Taught in

References