diff --git a/OpenRA.Game/Input/Hotkey.cs b/OpenRA.Game/Input/Hotkey.cs index 1d82fda5b5..ea70df2e23 100755 --- a/OpenRA.Game/Input/Hotkey.cs +++ b/OpenRA.Game/Input/Hotkey.cs @@ -28,7 +28,12 @@ namespace OpenRA Keycode key; if (!Enum.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)