Skip to content

Commit

Permalink
Stop dispatching onFocus when debugger is not visible (#3271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ACrazyTown authored Dec 1, 2024
1 parent bf753a1 commit f9b7aed
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions flixel/system/frontEnds/DebuggerFrontEnd.hx
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ class DebuggerFrontEnd
if (!Value)
{
FlxG.stage.focus = null;
// setting focus to null will trigger a focus lost event, let's undo that
FlxG.game.onFocus(null);

#if FLX_MOUSE
FlxG.mouse.enabled = true;
Expand Down

0 comments on commit f9b7aed

Please sign in to comment.