[Tabs] Left/Right Arrow keyboard shortcuts consume Alt+Left/Right Arrow browser shortcuts for Back/Forward #45308
Labels
bug 🐛
Something doesn't work
component: tabs
This is the name of the generic UI component, not the React module!
Steps to reproduce
Steps:
Alt+{Left Arrow}
Current behavior
In some environments nothing seems to happen. Though most will move the focus between tabs
Expected behavior
Your browser should navigate to the previous page, as if you clicked the "Back" button on your browser.
Context
In Chrome, Firefox, and Edge,
Alt+{Left Arrow}
andAlt+{Right Arrow}
are shortcuts for the browser Back and Forward buttons, respectively. The Tabs components have arrow key shortcuts to navigate between tabs, however this seems to consume all left and right arrow key inputs for horizontal tabs, regardless of if modifiers are held or not. And so the browser will not respond toAlt+{Left Arrow}
andAlt+{Right Arrow}
shortcuts while a tab component is in focus.I believe that this could present accessibility concerns and the component should not consume arrow key inputs while the alt key is being held.
Your environment
npx @mui/envinfo
Search keywords: tab tabs tablist tabcontext alt arrowkeys shortcut back forward accessibility
The text was updated successfully, but these errors were encountered: