suppress control characters in text input

This commit is contained in:
Chris Forbes
2010-04-19 18:55:42 +12:00
parent c77397df65
commit be75cabe1e

View File

@@ -57,7 +57,7 @@ namespace OpenRA
if (typing.Length > 0)
typing = typing.Remove(typing.Length - 1);
}
else
else if (!char.IsControl(c))
typing += c;
}