Skip to content

Commit d227a0a

Browse files
Fix Key.None logic
1 parent 343cdf2 commit d227a0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher.Infrastructure/Hotkey/HotkeyModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ public bool Validate(bool validateKeyGestrue = false)
155155
case Key.RightShift:
156156
case Key.LWin:
157157
case Key.RWin:
158+
case Key.None:
158159
return false;
159160
default:
160161
if (validateKeyGestrue)
@@ -174,7 +175,7 @@ public bool Validate(bool validateKeyGestrue = false)
174175
}
175176
else
176177
{
177-
return CharKey != Key.None;
178+
return true;
178179
}
179180
}
180181
}

0 commit comments

Comments
 (0)