Skip to content

Commit 0db6679

Browse files
authored
Merge pull request #1289 from Flow-Launcher/add_query_length_check
[Dev] add check query length when calling backspace command action
2 parents 1d02c30 + 914f7e3 commit 0db6679

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)