diff --git a/GlazeWM.Infrastructure/Utils/KeybindingHelper.cs b/GlazeWM.Infrastructure/Utils/KeybindingHelper.cs index 3342575c..408f6695 100644 --- a/GlazeWM.Infrastructure/Utils/KeybindingHelper.cs +++ b/GlazeWM.Infrastructure/Utils/KeybindingHelper.cs @@ -31,7 +31,11 @@ private static Keys ParseKeyString(string keyString) } catch (ArgumentException) { - throw new ArgumentException($"Unknown key '{keyString}'"); + return keyString switch + { + "Ctrl" => Keys.Control, + _ => throw new ArgumentException($"Unknown key '{keyString}'"), + }; } } }