Attempt to parse unexpected key events as text. Fixes #4232.

This commit is contained in:
Paul Chote
2013-12-11 22:42:56 +13:00
parent 89d1d17b80
commit 719c9c1cd2
2 changed files with 16 additions and 7 deletions

View File

@@ -82,12 +82,6 @@ namespace OpenRA
return (k & mod) == mod;
}
public static bool IsValidInput(this KeyInput key)
{
return char.IsLetter(key.UnicodeChar) || char.IsDigit(key.UnicodeChar) ||
char.IsSymbol(key.UnicodeChar) || char.IsSeparator(key.UnicodeChar) ||
char.IsPunctuation(key.UnicodeChar);
}
public static V GetOrAdd<K, V>(this Dictionary<K, V> d, K k)
where V : new()