From 4ebd00bc06a5c94e935f557ba14ba9729faec104 Mon Sep 17 00:00:00 2001 From: lemz1 Date: Tue, 11 Feb 2025 19:18:33 +0100 Subject: [PATCH] haxe ui focus check --- source/funkin/util/WindowUtil.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/funkin/util/WindowUtil.hx b/source/funkin/util/WindowUtil.hx index 4a9ac05b7..ea6507a0b 100644 --- a/source/funkin/util/WindowUtil.hx +++ b/source/funkin/util/WindowUtil.hx @@ -117,6 +117,11 @@ class WindowUtil #if (desktop || html5) 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,