mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-04-21 19:31:52 -04:00
haxe ui focus check
This commit is contained in:
parent
d31ef12363
commit
591ef83189
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue