diff --git a/source/funkin/util/WindowUtil.hx b/source/funkin/util/WindowUtil.hx index 96b47093e..4a9ac05b7 100644 --- a/source/funkin/util/WindowUtil.hx +++ b/source/funkin/util/WindowUtil.hx @@ -115,7 +115,7 @@ class WindowUtil windowExit.dispatch(exitCode); }); - #if desktop + #if (desktop || html5) openfl.Lib.current.stage.addEventListener(openfl.events.KeyboardEvent.KEY_DOWN, (e:openfl.events.KeyboardEvent) -> { for (key in PlayerSettings.player1.controls.getKeysForAction(WINDOW_FULLSCREEN)) {