Ignore modifier key when using key + number to launch result

- close #2191
- close #2425
This commit is contained in:
VictoriousRaptor 2023-11-19 17:04:29 +08:00
parent f531a46225
commit 798d30ea27

View file

@ -285,7 +285,8 @@ namespace Flow.Launcher.ViewModel
}
var hideWindow = await result.ExecuteAsync(new ActionContext
{
SpecialKeyState = GlobalHotkey.CheckModifiers()
// not null means pressing modifier key + number, should ignore the modifier key
SpecialKeyState = index is not null ? new SpecialKeyState() : GlobalHotkey.CheckModifiers()
})
.ConfigureAwait(false);