microsoft / microsoft/pxt-microbit

Keyboard navigation: using "up arrow" doesn't visit all nodes

Open
#6,667 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

keyboard navigation P2
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

Describe the bug
With the following layout, created by using "format code" shortcut, you are unable to move one of the orphaned statement blocks back into the "forever" loop using up arrow or left arrow. You can get to it via down arrow or right arrow.

example project to replicate

To Reproduce
Steps to reproduce the behavior:

  1. Edit the linked project
  2. Ensure keyboard controls are switched on
  3. Click on the "pause" or "show number" block
  4. m to enter move mode
  5. up arrow repeatedly to try to move into "forever"
  6. You are unable to move the block into "forever"
  7. Use down arrow and observe there is an additional connection and you can now successfully move inside "forever"

Screen recording
GIF showing the described bug

micro:bit version (please complete the following information):
N/A

Desktop (please complete the following information):

  • OS: Win 11
  • Browser: Firefox

Smartphone (please complete the following information):
N/A

Additional context

Having written this all out, I'm increasingly sure I've seen mention of it on the blockly-keyboard-navigation plugin repo but (a) I can't replicate it there to log the bug there, and (b) I can't find it anything matching in their open or closed issues, so I may have imagined it.

A fix here might just be "update the keyboard nav plugin at some point"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked example project and reproduce the keyboard-navigation steps in Firefox with keyboard controls enabled. Inspect the keyboard navigation integration and compare it with the referenced blockly-keyboard-navigation plugin repository. Done means the orphaned statement block can be reached and moved into the forever loop with repeated up-arrow or left-arrow navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
accessibility, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.