diff --git a/illaclient/src/main/java/illarion/client/gui/controller/game/GUIChatHandler.java b/illaclient/src/main/java/illarion/client/gui/controller/game/GUIChatHandler.java index a520a336d..3cc5fedf6 100644 --- a/illaclient/src/main/java/illarion/client/gui/controller/game/GUIChatHandler.java +++ b/illaclient/src/main/java/illarion/client/gui/controller/game/GUIChatHandler.java @@ -434,8 +434,8 @@ public void onEndScreen() { public void onStartScreen() { setHeightOfChatLog(CHAT_COLLAPSED_HEIGHT); World.getUpdateTaskManager().addTask((container, delta) -> { - keyEvent(NiftyStandardInputEvent.SubmitText); - keyEvent(NiftyStandardInputEvent.SubmitText); + chatMsg.setText(""); + keyEvent(NiftyStandardInputEvent.Escape); }); AnnotationProcessor.process(this); assert nifty != null;