Fixed parsing of hotkeys with no name (such as tilde)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user