Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Make cursor arrow keys behave as per #129 #143

Merged
merged 3 commits into from
Jan 10, 2025
Merged

Conversation

cpcallen
Copy link
Contributor

@cpcallen cpcallen commented Jan 10, 2025

Modify LineCursor so that movement via arrow keys behaves as described in #129, specifically:

  • The cursor should skip value connections (input/output) if there is a connected block.
  • The cursor should be able to visit all fields, including whole-block fields on simple reporter blocks.
  • The cursor should skip stack connections (next/previous) if there is a connected block.

Part of #129.

Note that when using the zelos renderer, if you navigate to a whole-block field the cursor temporarily disappears. This is due to (what I will claim is) a bug in marker rendering in Blockly. Rendering works as expected in geras and thrasos.

Modify LineCursor so that movement via arrow keys behaves as
described in #129.
@cpcallen cpcallen requested a review from a team as a code owner January 10, 2025 16:19
@cpcallen cpcallen requested review from rachel-fenichel and removed request for a team January 10, 2025 16:19
Copy link
Contributor

@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.

LTGM after typo fixes.

@rachel-fenichel
Copy link
Contributor

This change undid my kludge to fix #67

@cpcallen cpcallen merged commit b86c6c7 into main Jan 10, 2025
1 check passed
@cpcallen cpcallen deleted the feat/cursor-arrows branch January 10, 2025 19:38
@cpcallen
Copy link
Contributor Author

Filed google/blockly#8739 for issue with missing marker on full-block FieldColour instances.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants