Skip to content

Conversation

@microbit-matt-hillsdon
Copy link
Contributor

Move up to the block if we try to insert a statement block in a value input, value connection, field or value block. This has a similar feel to the heuristic that uses the value input on a block if you insert a value block.

Fixes #418

Demo: https://statement-vs-value-heuristic.blockly-keyboard-experimentation.pages.dev/

Move up to the block if we try to insert a statement block in a value input,
value connection, field or value block. This has a similar feel to the
heuristic that uses the value input on a block if you insert a value block.
@microbit-matt-hillsdon microbit-matt-hillsdon requested a review from a team as a code owner April 14, 2025 14:32
@microbit-matt-hillsdon microbit-matt-hillsdon requested review from maribethb and removed request for a team April 14, 2025 14:32
@rachel-fenichel rachel-fenichel requested review from rachel-fenichel and removed request for maribethb April 14, 2025 15:36
@rachel-fenichel rachel-fenichel self-assigned this Apr 14, 2025
Copy link
Collaborator

@rachel-fenichel rachel-fenichel left a comment

Choose a reason for hiding this comment

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

LGTM. Worth adding tests for these specific cases so we don't break them going forward.

@rachel-fenichel rachel-fenichel merged commit 09e5d0e into RaspberryPiFoundation:main Apr 14, 2025
2 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.

Unexpected insert placement when value block selected

2 participants