From 914f7e346bbf4cb90193d3c0692aadf00212a273 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Sat, 23 Jul 2022 20:29:41 +1000 Subject: [PATCH] add check query length when calling backspace command action --- Flow.Launcher/MainWindow.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 0573a948b..2b7db38cf 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -517,6 +517,7 @@ namespace Flow.Launcher if (specialKeyState.CtrlPressed) { if (_viewModel.SelectedIsFromQueryResults() + && QueryTextBox.Text.Length > 0 && QueryTextBox.CaretIndex == QueryTextBox.Text.Length) { var queryWithoutActionKeyword =