Skip to content

Commit

Permalink
Fix key handling after simulator is made full screen (#10365)
Browse files Browse the repository at this point in the history
* Fix key handling after simulator is made full screen

* Restore simulator iframe focus call
  • Loading branch information
microbit-robert authored Jan 31, 2025
1 parent 8bc2ef8 commit aae3e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3651,7 +3651,7 @@ export class ProjectView
if (this.state.collapseEditorTools) {
this.expandSimulator();
}
if (!enabled) {
if (enabled) {
document.addEventListener('keydown', this.closeOnEscape);
simulator.driver.focus();
} else {
Expand Down

0 comments on commit aae3e27

Please sign in to comment.