Skip to content

Commit 914f7e3

Browse files
committed
add check query length when calling backspace command action
1 parent dae0a5a commit 914f7e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ private void OnKeyDown(object sender, KeyEventArgs e)
517517
if (specialKeyState.CtrlPressed)
518518
{
519519
if (_viewModel.SelectedIsFromQueryResults()
520+
&& QueryTextBox.Text.Length > 0
520521
&& QueryTextBox.CaretIndex == QueryTextBox.Text.Length)
521522
{
522523
var queryWithoutActionKeyword =

0 commit comments

Comments
 (0)