Skip to content

Commit 3a8162b

Browse files
Ban alphanumeric keys
1 parent 203705b commit 3a8162b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ public bool Validate()
154154
default:
155155
if (ModifierKeys == ModifierKeys.None)
156156
{
157-
return CharKey >= Key.F1 && CharKey <= Key.F24;
157+
return !((CharKey >= Key.A && CharKey <= Key.Z) ||
158+
(CharKey >= Key.D0 && CharKey <= Key.D9) ||
159+
(CharKey >= Key.NumPad0 && CharKey <= Key.NumPad9));
158160
}
159161
else
160162
{

0 commit comments

Comments
 (0)