From d227a0a158ee954050811490d1513a219f145a3a Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Sat, 25 Feb 2023 15:18:00 +0800 Subject: [PATCH] Fix Key.None logic --- Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs b/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs index e2816d57a..937059436 100644 --- a/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs +++ b/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs @@ -155,6 +155,7 @@ namespace Flow.Launcher.Infrastructure.Hotkey case Key.RightShift: case Key.LWin: case Key.RWin: + case Key.None: return false; default: if (validateKeyGestrue) @@ -174,7 +175,7 @@ namespace Flow.Launcher.Infrastructure.Hotkey } else { - return CharKey != Key.None; + return true; } } }