Skip to content

Commit 64cc4a9

Browse files
committed
Fix ContextMenu bug
Should not switch to ContextMenu if SelectedItem == null
1 parent 2e412a0 commit 64cc4a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ private void InitializeKeyCommands()
211211
{
212212
if (SelectedIsFromQueryResults())
213213
{
214-
SelectedResults = ContextMenu;
214+
// When switch to ContextMenu from QueryResults, but no item being chosen, should do nothing
215+
// i.e. Shift+Enter/Ctrl+O right after Alt + Space should do nothing
216+
if (SelectedResults.SelectedItem != null)
217+
SelectedResults = ContextMenu;
215218
}
216219
else
217220
{

0 commit comments

Comments
 (0)