input handler: force not skip next char event if no input consumer is set

This should fix that you sometimes (eventually when the server force closes an container without any key interaction) need to press ESC twice to pause the game.
This commit is contained in:
Bixilon 2023-05-18 14:49:15 +02:00
parent 69722cd2a6
commit 57c3dd0e2c
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -282,8 +282,10 @@ class RenderWindowInputHandler(
keysLastDownTime[keyCode] = currentTime
}
if (inputHandler != this.inputHandler && this.inputHandler != null) {
if (this.inputHandler == null) {
skipCharPress = false
skipMouseMove = false
} else if (inputHandler != this.inputHandler) {
skipCharPress = true
skipMouseMove = true
}