Chrome 150 adds focusgroup attribute to handle arrow-key navigation natively
Chrome 150 has introduced a new HTML attribute called focusgroup that enables browsers to manage keyboard navigation within composite UI widgets such as listboxes, menus, tablists, and toolbars. Previously, developers had to manually write JavaScript to handle arrow-key roving focus, Home/End key jumps, and Tab exits for every such widget, often introducing bugs in the process. The attribute works by placing a single tab stop on the container element, with the browser automatically moving focus among child options via arrow keys. However, the movement axis defaults to the widget role's assumed visual orientation, meaning developers using non-standard layouts — such as horizontal listboxes — must override this manually. Notably, focusgroup is still only documented in an Open-UI explainer and has not yet been formally incorporated into the WHATWG HTML specification, so its design may still change.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in