Fixed parsing of hotkeys with no name (such as tilde)
This commit is contained in:
@@ -28,7 +28,12 @@ namespace OpenRA
|
|||||||
|
|
||||||
Keycode key;
|
Keycode key;
|
||||||
if (!Enum<Keycode>.TryParse(parts[0], true, out key))
|
if (!Enum<Keycode>.TryParse(parts[0], true, out key))
|
||||||
|
{
|
||||||
|
int c;
|
||||||
|
if (!int.TryParse(parts[0], out c))
|
||||||
return false;
|
return false;
|
||||||
|
key = (Keycode)c;
|
||||||
|
}
|
||||||
|
|
||||||
var mods = Modifiers.None;
|
var mods = Modifiers.None;
|
||||||
if (parts.Length >= 2)
|
if (parts.Length >= 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user