Skip to content

fix: fix disable orphans handler to account for keyboard inserts#10069

Open
maribethb wants to merge 1 commit into
RaspberryPiFoundation:mainfrom
maribethb:disable-orphans
Open

fix: fix disable orphans handler to account for keyboard inserts#10069
maribethb wants to merge 1 commit into
RaspberryPiFoundation:mainfrom
maribethb:disable-orphans

Conversation

@maribethb

Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #10068

Proposed Changes

  • Makes the disableOrphans listener also listen to drag end events

Reason for Changes

For keyboard inserts from the flyout, a move event that has dragging = false is not always fired. If you insert a block from flyout without ever moving it (e.g. don't hit the arrow keys, don't enable grid snapping) then there is (correctly, arguably, since no move is happening) no move event, only a drag end.

This resulted in the newly created orphan block not being disabled.

Test Coverage

added

Documentation

Additional Information

@maribethb maribethb requested a review from a team as a code owner June 25, 2026 16:26
@maribethb maribethb requested a review from gonfunko June 25, 2026 16:26
@github-actions github-actions Bot added the PR: fix Fixes a bug label Jun 25, 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.

disableOrphans doesn't work for some keyboard-driven inserts

2 participants