Skip to content

fix: Bring blocks to the front when focused via keyboard#10032

Merged
mikeharv merged 2 commits into
RaspberryPiFoundation:mainfrom
microbit-robert:blocks-to-front
Jun 18, 2026
Merged

fix: Bring blocks to the front when focused via keyboard#10032
mikeharv merged 2 commits into
RaspberryPiFoundation:mainfrom
microbit-robert:blocks-to-front

Conversation

@microbit-robert

Copy link
Copy Markdown
Collaborator

The basics

The details

Resolves

Brings blocks to the front when focused by keyboard navigation.

Fixes #9907

Proposed Changes

Moves out a separate moveSvgRootToFront method from the existing bringToFront method and calls it inside onNodeFocus for blocks and rendered connections. The moveSvgRootToFront is safe to call inside the onNodeFocus callbacks.

Reason for Changes

Aligns mouse and keyboard behaviour. Avoids situations when focused blocks are visually hidden by other blocks on top of them when using keyboard navigation.

Test Coverage

Not covered.

Documentation

N/A

@microbit-robert microbit-robert requested a review from a team as a code owner June 18, 2026 14:17
@microbit-robert microbit-robert requested a review from mikeharv June 18, 2026 14:17
@github-actions github-actions Bot added the PR: fix Fixes a bug label Jun 18, 2026

@mikeharv mikeharv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@mikeharv mikeharv merged commit f466d4d into RaspberryPiFoundation:main Jun 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[13.0.0-beta.5] Bring focused node to the front when using keyboard controls

2 participants