Unfocus Textfield on Close

This commit is contained in:
Kam committed 2025-03-05 04:45:38 -05:00
1 parent cba1f6268f
commit b2fb46db64
1 file changed
+3
@@ -121,6 +121,9 @@ public class SubGuiEditProperty extends GuiScreen {
public void closeOverlay() {
Keyboard.enableRepeatEvents(false);
if(textField != null) {
textField.setFocused(false);
}
if (subGuiCallback != null) {
subGuiCallback.onSubGuiClosed();
}