Merge pull request #7840 from sinf/fix7838

Fixed parsing of hotkeys with no name (such as tilde)
This commit is contained in:
Oliver Brakmann
2015-04-25 14:19:25 +02:00

View File

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