ChatboxTextInput: Assume end cursor when changing value

This commit is contained in:
Max Weber
2018-10-22 21:33:23 -06:00
parent f3c820669a
commit a717d8027d

View File

@@ -120,10 +120,7 @@ public class ChatboxTextInput extends ChatboxInput implements KeyListener, Mouse
public ChatboxTextInput value(String value) public ChatboxTextInput value(String value)
{ {
this.value = new StringBuffer(value); this.value = new StringBuffer(value);
if (built) cursorAt(this.value.length());
{
clientThread.invoke(this::update);
}
return this; return this;
} }