Skip to content

Commit 50bc940

Browse files
committed
validation for open search hotkey
1 parent 8c509ea commit 50bc940

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Flow.Launcher/HotkeyControl.xaml.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#nullable enable
1+
#nullable enable
22

33
using System.Collections.ObjectModel;
44
using System.Threading.Tasks;
@@ -154,7 +154,15 @@ private void SetHotkey(HotkeyModel keyModel, bool triggerValidate = true)
154154
{
155155
if (triggerValidate)
156156
{
157-
bool hotkeyAvailable = CheckHotkeyAvailability(keyModel, ValidateKeyGesture);
157+
bool hotkeyAvailable = false;
158+
if (keyModel.ToString() == "LWin" || keyModel.ToString() == "RWin")
159+
{
160+
hotkeyAvailable = true;
161+
}
162+
else
163+
{
164+
hotkeyAvailable = CheckHotkeyAvailability(keyModel, ValidateKeyGesture);
165+
}
158166

159167
if (!hotkeyAvailable)
160168
{

0 commit comments

Comments
 (0)