diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-09-07 18:14:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 18:14:44 +0200 |
commit | 1ccbd9cf3c443c35b6c51d171b5b20388f9337b0 (patch) | |
tree | 0d40c1bd773d26576f1a039140eb4cac43ebcfa4 /src/main/java/at/hannibal2/skyhanni/data | |
parent | 9d326f9c6bcbb62b120a33930a23f223667cd040 (diff) | |
download | skyhanni-1ccbd9cf3c443c35b6c51d171b5b20388f9337b0.tar.gz skyhanni-1ccbd9cf3c443c35b6c51d171b5b20388f9337b0.tar.bz2 skyhanni-1ccbd9cf3c443c35b6c51d171b5b20388f9337b0.zip |
Fix: Stuck in text box forever (#2476)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/model/TextInput.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/model/TextInput.kt b/src/main/java/at/hannibal2/skyhanni/data/model/TextInput.kt index 6ae2342b6..0646b884c 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/model/TextInput.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/model/TextInput.kt @@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.data.model import at.hannibal2.skyhanni.utils.KeyboardManager import at.hannibal2.skyhanni.utils.KeyboardManager.isKeyClicked +import at.hannibal2.skyhanni.utils.KeyboardManager.isKeyHeld import at.hannibal2.skyhanni.utils.LorenzColor import at.hannibal2.skyhanni.utils.OSUtils import at.hannibal2.skyhanni.utils.StringUtils.insert @@ -73,7 +74,11 @@ class TextInput { fun onGuiInput(ci: CallbackInfo) { if (activeInstance != null) { - ci.cancel() + if (Keyboard.KEY_ESCAPE.isKeyHeld()) { + disable() + } else { + ci.cancel() + } return } } |