Skip to content

Commit 798d30e

Browse files
Ignore modifier key when using key + number to launch result
- close #2191 - close #2425
1 parent f531a46 commit 798d30e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ private async Task OpenResultAsync(string index)
285285
}
286286
var hideWindow = await result.ExecuteAsync(new ActionContext
287287
{
288-
SpecialKeyState = GlobalHotkey.CheckModifiers()
288+
// not null means pressing modifier key + number, should ignore the modifier key
289+
SpecialKeyState = index is not null ? new SpecialKeyState() : GlobalHotkey.CheckModifiers()
289290
})
290291
.ConfigureAwait(false);
291292

0 commit comments

Comments
 (0)