Skip to content

Account for duplicate-on-drag and shadows in keyboard disconnect (X) - #11381

Merged
Richard Knoll (riknoll) merged 2 commits into
microsoft:masterfrom
microbit-matt-hillsdon:disconnect-dupe-on-drag
Jun 9, 2026
Merged

Richard Knoll (riknoll) merged 2 commits into
microsoft:masterfrom
microbit-matt-hillsdon:disconnect-dupe-on-drag

Conversation

@microbit-matt-hillsdon

Copy link
Copy Markdown
Contributor

For duplicate on drag blocks we clone the block like we already do for move (M).

Change how we clone as it's important for undo that the block is a non-shadow from the beginning otherwise the create undo event is skipped.

The shadow part of the precondition works around this blockly issue which I've opened an upstream PR for:
RaspberryPiFoundation/blockly#9963

For duplicate on drag blocks we clone the block like we already do for move
(M).

Change how we clone as it's important for undo that the block is a non-shadow
from the beginning otherwise the create undo event is skipped.

The shadow part of the precondition works around this blockly issue which I've
opened an upstream PR for:
RaspberryPiFoundation/blockly#9963
@riknoll
Richard Knoll (riknoll) enabled auto-merge (squash) June 9, 2026 16:41
@riknoll
Richard Knoll (riknoll) merged commit b1d6d51 into microsoft:master Jun 9, 2026
12 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