From be75cabe1ede0d12310a31d796b81993fa26f253 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 19 Apr 2010 18:55:42 +1200 Subject: [PATCH] suppress control characters in text input --- OpenRA.Game/Chat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Chat.cs b/OpenRA.Game/Chat.cs index c8fc3ba179..ac68dc5dcc 100644 --- a/OpenRA.Game/Chat.cs +++ b/OpenRA.Game/Chat.cs @@ -57,7 +57,7 @@ namespace OpenRA if (typing.Length > 0) typing = typing.Remove(typing.Length - 1); } - else + else if (!char.IsControl(c)) typing += c; }