Fixed parsing of hotkeys with no name (such as tilde)

This commit is contained in:
sinf
2015-04-03 14:55:10 +03:00
parent f6051b1e2b
commit 5e86e63b37

View File

@@ -28,7 +28,12 @@ namespace OpenRA
Keycode key;
if (!Enum<Keycode>.TryParse(parts[0], true, out key))
{
int c;
if (!int.TryParse(parts[0], out c))
return false;
key = (Keycode)c;
}
var mods = Modifiers.None;
if (parts.Length >= 2)