Skip to content

[context menu] Keep Shift+Tab inside the open menu - #6072

Open
rohits2501 wants to merge 2 commits into
mui:masterfrom
rohits2501:fix/context-menu-shift-tab
Open

rohits2501 wants to merge 2 commits into
mui:masterfrom
rohits2501:fix/context-menu-shift-tab

Conversation

@rohits2501

@rohits2501 rohits2501 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #6063.

Tab leaves a context menu open. Shift+Tab closed it and moved focus back to the trigger.

After this change, Shift+Tab stays inside the open context menu, and focus stays on the menu. A submenu still closes on Shift+Tab and returns focus to its parent item.

A regular Menu has the same split: Tab stays inside, and Shift+Tab closes. Existing menu tests cover that close, so this change leaves Menu as it is.

Shift+Tab closed a root context menu while Tab left it open.
@pkg-pr-new

pkg-pr-new Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

commit: 9325514

@code-infra-dashboard

code-infra-dashboard Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 🔺+38B(+0.01%) 🔺+40B(+0.02%)

Details of bundle changes

Performance

No regressions in 36 benchmarks · ran 4m 01s · details


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 9325514
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6adb7d6ddfc24ff657309ce0
😎 Deploy Preview https://deploy-preview-6072--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@rohits2501

Copy link
Copy Markdown
Contributor Author

@atomiks Please review when you get some time.
Thanks!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[context menu] Tab is trapped in the open popup but Shift+Tab closes it and returns focus

1 participant