This commit is contained in:
lemz 2025-04-04 22:03:55 +02:00 committed by GitHub
commit 71b5c3ed5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,6 +116,11 @@ class WindowUtil
});
openfl.Lib.current.stage.addEventListener(openfl.events.KeyboardEvent.KEY_DOWN, (e:openfl.events.KeyboardEvent) -> {
if (haxe.ui.focus.FocusManager.instance.focus != null)
{
return;
}
for (key in PlayerSettings.player1.controls.getKeysForAction(WINDOW_FULLSCREEN))
{
// FlxG.stage.focus is set to null by the debug console stuff,