Skip to content

Conversation

@johnnesky
Copy link
Contributor

@johnnesky johnnesky commented May 17, 2025

Implements unit tests described at https://docs.google.com/document/d/1pIIX5sKEG9f_NcWDIQJJEOMM7w7pQUf8eJoT3lrAElQ/edit?tab=t.0 for deleting blocks via keyboard commands.

The document linked above expects that deleting a block that's inside an inline input would result in the parent block being selected, and that's not what happens, instead the parent block's input connection is selected. This PR expects the currently implemented behavior.

@johnnesky johnnesky requested a review from a team as a code owner May 17, 2025 04:07
@johnnesky johnnesky requested review from rachel-fenichel and removed request for a team May 17, 2025 04:07
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.

Tests look good--please fix lint and remove .only to be able to merge.

The document linked above expects that deleting a block that's inside an inline input would result in the parent block being selected, and that's not what happens, instead the parent block's input connection is selected. This PR expects the currently implemented behavior.

Works for me. Cursor position after delete is discussed #254 and we can update the test to match the behaviour we agree on in discussion.

Just realized that other issue is currently closed. I meant RaspberryPiFoundation/blockly#8793

@johnnesky johnnesky merged commit 17483e9 into RaspberryPiFoundation:main May 19, 2025
8 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