diff --git a/src/Files.App/Data/Commands/HotKey/HotKey.cs b/src/Files.App/Data/Commands/HotKey/HotKey.cs index 9713381259e9..f3ad7362fc60 100644 --- a/src/Files.App/Data/Commands/HotKey/HotKey.cs +++ b/src/Files.App/Data/Commands/HotKey/HotKey.cs @@ -308,7 +308,7 @@ public static HotKey Parse(string code, bool localized = true) { parts = [code]; } - else if (parts.Count > 0 && string.IsNullOrEmpty(parts.Last())) + else if (parts.Count > 1 && string.IsNullOrEmpty(parts.Last())) { // If the last part is empty, remove it and add a "+" to the last non-empty part parts.RemoveAt(parts.Count - 1);