GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat: alias `Ctrl` to `Control` when parsing keybindings (#338)
Stuart Miller7b4679eaaf31
diff --git a/GlazeWM.Infrastructure/Utils/KeybindingHelper.cs b/GlazeWM.Infrastructure/Utils/KeybindingHelper.csindex 3342575c..408f6695 100644--- a/GlazeWM.Infrastructure/Utils/KeybindingHelper.cs+++ b/GlazeWM.Infrastructure/Utils/KeybindingHelper.cs@@ -31,7 +31,11 @@ namespace GlazeWM.Infrastructure.Utils}catch (ArgumentException){- throw new ArgumentException($"Unknown key '{keyString}'");+ return keyString switch+ {+ "Ctrl" => Keys.Control,+ _ => throw new ArgumentException($"Unknown key '{keyString}'"),+ };}}}