Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove block dropdown menu separator from keyboard navigation #10364

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

microbit-robert
Copy link
Contributor

Blockly dropdown menus that include a HorizontalRuleMenuItem (menu separator) as a MenuItem have an issue where the menu separator becomes the selected menu item in a non-obvious way when navigating the dropdown via keyboard.

See the video below for an example of this. Keyboard navigation should only visit the 4 'real' items in this dropdown, however, it also visits the menu separator as a 5th item.

Screen.Recording.2025-01-30.162244.mp4

This PR disables the separator menu item so that it is ignored by keyboard navigation.

@riknoll riknoll merged commit 0ef36f9 into microsoft:master Jan 30, 2025
5 checks passed
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.

2 participants