From 6f7af9ee22b5d0dbf826ab0fbeba8eac5c3a96b9 Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Wed, 25 May 2022 18:32:24 +0200 Subject: [PATCH] KeyPressDispatcher no longer silently eats exceptions (#6931) --- core/src/com/unciv/ui/utils/KeyPressDispatcher.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/src/com/unciv/ui/utils/KeyPressDispatcher.kt b/core/src/com/unciv/ui/utils/KeyPressDispatcher.kt index 9a5be7ca72..5b7926e71c 100644 --- a/core/src/com/unciv/ui/utils/KeyPressDispatcher.kt +++ b/core/src/com/unciv/ui/utils/KeyPressDispatcher.kt @@ -15,7 +15,7 @@ import com.badlogic.gdx.scenes.scene2d.Stage * (Exception: international keyboard AltGr-combos) * An update supporting easy declarations for any modifier combos would need to use Gdx.input.isKeyPressed() * Gdx seems to omit support for a modifier mask (e.g. Ctrl-Alt-Shift) so we would need to reinvent this - * + * * Note: It is important that KeyCharAndCode is an immutable data class to support usage as HashMap key */ @@ -203,12 +203,9 @@ class KeyPressDispatcher(val name: String? = null) : HashMap