Skip to content

Commit

Permalink
Fix key handling after simulator is made full screen
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Jan 30, 2025
1 parent c4ab93c commit 5be72d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3651,9 +3651,8 @@ export class ProjectView
if (this.state.collapseEditorTools) {
this.expandSimulator();
}
if (!enabled) {
if (enabled) {
document.addEventListener('keydown', this.closeOnEscape);
simulator.driver.focus();
} else {
document.removeEventListener('keydown', this.closeOnEscape);
}
Expand Down

0 comments on commit 5be72d8

Please sign in to comment.