Skip to content

Keyboard navigation in dropdown menus that include separators is broken #9473

@microbit-robert

Description

@microbit-robert

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

If a field_dropdown menu contains a separator, keyboard navigation doesn't work properly when moving up and down through the menu. This is due to a mix of methods being used in highlightHelper and highlightPrevious / highlightNext. this.getMenuItems() filters out separators, but this.menuItems does not and they are used interchangeably.

Reproduction steps

Priority

No response

Stack trace

Screenshots

No response

Browsers

No response

Metadata

Metadata

Labels

issue: bugDescribes why the code or behaviour is wrongissue: triageIssues awaiting triage by a Blockly team member

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions