Fix gui closed when inv keybind pressed while text field in focus (#1255)

This commit is contained in:
lc-1337 authored and GitHub committed 2026-04-30 21:30:26 +02:00
1 parent 658d03b988
commit a6f80dcfc2
1 file changed
+1 -3
@@ -183,9 +183,7 @@ public abstract class GuiAmount extends GuiSub {
if (!this.checkHotbarKeys(key)) {
if (key == Keyboard.KEY_RETURN || key == Keyboard.KEY_NUMPADENTER) {
this.actionPerformed(this.nextBtn);
}
this.amountTextField.textboxKeyTyped(character, key);
super.keyTyped(character, key);
} else if (!this.amountTextField.textboxKeyTyped(character, key)) super.keyTyped(character, key);
}
}