mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 05:15:11 +00:00
Unfocus Textfield on Close
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user