Skip to content

fix: Don't close the flyout when creating a variable using keyboard nav#9745

Open
gonfunko wants to merge 3 commits intov13from
closeout
Open

fix: Don't close the flyout when creating a variable using keyboard nav#9745
gonfunko wants to merge 3 commits intov13from
closeout

Conversation

@gonfunko
Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #9122

Proposed Changes

This PR updates Blockly's dialog utility to use a <dialog> element instead of the built-in browser alert modals. This allows for more consistent focus management, since the dialog is just part of the DOM rather than an application-level modal. Secondarily, it adds an event listener to the flyout workspace in the create variable button callback handler that identifies and focuses the newly-created variable block for convenience now that the flyout no longer closes.

@gonfunko gonfunko requested a review from a team as a code owner April 21, 2026 21:06
@gonfunko gonfunko requested a review from maribethb April 21, 2026 21:06
@github-actions github-actions Bot added the PR: fix Fixes a bug label Apr 21, 2026
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.

2 participants