Closed MAJigsaw77 closed 4 months ago
You can prevent it by cancelling Lime's onKeyDown event (or, if you're using OpenFL, you should be able to preventDefault()
the KeyboardEvent.KEY_DOWN
event).
window.onKeyDown.add((keyCode, keyModifier) -> {
if (keyCode == KeyCode.RETURN && keyModifier.altKey) {
window.onKeyDown.cancel();
}
});
There's this thing in the
NativeWindow
that makes the game go fullscreen by pressingAlt+Enter
. However there's no way to prevent this action in any way.