Skip to content

[13.0.0-beta.8] Consider focusing the workspace itself instead of first top block #9969

@microbit-robert

Description

@microbit-robert

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

Currently, when the workspace takes focus for the first time, focus is moved to the first block in the workspace if it exists. As noted in our user testing feedback, we found that when the first block in the workspace was focused, the output was harder to parse than when the workspace itself was focused. When the block is focused, the user gets a lot of information: the workspace region change and the block output. They often missed that they were now inside the blocks workspace as a result.

In addition, the screen reader hint is only output when the workspace takes focus. It is not output when the first block is focused - and if it were, it would be even more information for the user to take in. In MakeCode, the first workspace focus almost always lands on a block since new projects start with the onStart and forever blocks.

If we focus the workspace itself on first focus, both of these issues are addressed. If we are aligned on this change, the code change is also trivial, just return null here.

Reproduction steps

Priority

No response

Stack trace

Screenshots

No response

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugDescribes why the code or behaviour is wrong

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions