Closed microbit-robert closed 2 years ago
Preview build will be at https://review-python-editor-next.microbit.org/sim-focus-bug/?flag=simulator
I don't like introducing the extra state, but can't think of an alternative way to do it without having to wait for the 'show simulator' button to be available on the page.
I don't like introducing the extra state, but can't think of an alternative way to do it without having to wait for the 'show simulator' button to be available on the page.
Took me a while to understand but I think this makes sense. I think ideally they'd be the same button in the show and hide case (not tried this!) and then no special focus management would be necessary.
Merged with main, will check sim works on the branch then merge.
Closes #893.