aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/dev/isxander/yacl3/gui/controllers/dropdown/AbstractDropdownControllerElement.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/dev/isxander/yacl3/gui/controllers/dropdown/AbstractDropdownControllerElement.java b/src/main/java/dev/isxander/yacl3/gui/controllers/dropdown/AbstractDropdownControllerElement.java
index 7e73332..cc56c11 100644
--- a/src/main/java/dev/isxander/yacl3/gui/controllers/dropdown/AbstractDropdownControllerElement.java
+++ b/src/main/java/dev/isxander/yacl3/gui/controllers/dropdown/AbstractDropdownControllerElement.java
@@ -104,6 +104,9 @@ public abstract class AbstractDropdownControllerElement<T, U> extends StringCont
@Override
public boolean charTyped(char chr, int modifiers) {
+ if (!inputFieldFocused) {
+ return false;
+ }
if (!dropdownVisible) {
createDropdownWidget();
}