ChatboxTextInput: Assume end cursor when changing value
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user