From cd543e93b2f2eadfa7924345f4e3b72d5699b66a Mon Sep 17 00:00:00 2001 From: hishitetsu <66369541+hishitetsu@users.noreply.github.com> Date: Thu, 31 Jul 2025 09:41:14 +0900 Subject: [PATCH] Update HotKey.cs --- src/Files.App/Data/Commands/HotKey/HotKey.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);