Skip to content

Commit

Permalink
fix bug causing focus to be lost when pressing the tab key lol
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline authored Mar 30, 2024
1 parent a058296 commit d000ec1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flixel/system/debug/console/Console.hx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ class Console extends Window
{
if (FlxG.debugger.visible && FlxG.game.debugger.console.visible && e.keyCode == Keyboard.TAB)
FlxG.stage.focus = input;
#if windows
if (e.keyCode == Keyboard.TAB) e.preventDefault();
#end
});
#end
#end
Expand Down

0 comments on commit d000ec1

Please sign in to comment.