Chatbox can be deselect by pressing enter while it's empty
This commit is contained in:
@@ -80,7 +80,11 @@ namespace Barotrauma.Networking
|
|||||||
{
|
{
|
||||||
textBox.TextColor = ChatMessage.MessageColor[(int)ChatMessageType.Default];
|
textBox.TextColor = ChatMessage.MessageColor[(int)ChatMessageType.Default];
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(message)) return false;
|
if (string.IsNullOrWhiteSpace(message))
|
||||||
|
{
|
||||||
|
if (textBox == chatMsgBox) textBox.Deselect();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (this == GameMain.Server)
|
if (this == GameMain.Server)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user