diff options
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WTextField.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WTextField.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WTextField.java index 0492e2d..ceb7f34 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WTextField.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WTextField.java @@ -374,6 +374,7 @@ public class WTextField extends WWidget { @Environment(EnvType.CLIENT) @Override public InputResult onCharTyped(char ch) { + if (!isEditable()) return InputResult.IGNORED; insertText(ch + ""); return InputResult.PROCESSED; } |