From 3a8162be49db1af2c2043d9f76582f10aa19766d Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Thu, 12 Jan 2023 00:27:19 +0800 Subject: [PATCH] Ban alphanumeric keys --- Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs b/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs index 61415dcb6..b92bc0207 100644 --- a/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs +++ b/Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs @@ -154,7 +154,9 @@ namespace Flow.Launcher.Infrastructure.Hotkey default: if (ModifierKeys == ModifierKeys.None) { - return CharKey >= Key.F1 && CharKey <= Key.F24; + return !((CharKey >= Key.A && CharKey <= Key.Z) || + (CharKey >= Key.D0 && CharKey <= Key.D9) || + (CharKey >= Key.NumPad0 && CharKey <= Key.NumPad9)); } else {