add check query length when calling backspace command action

This commit is contained in:
Jeremy Wu 2022-07-23 20:29:41 +10:00
parent dae0a5a812
commit 914f7e346b

View file

@ -517,6 +517,7 @@ namespace Flow.Launcher
if (specialKeyState.CtrlPressed)
{
if (_viewModel.SelectedIsFromQueryResults()
&& QueryTextBox.Text.Length > 0
&& QueryTextBox.CaretIndex == QueryTextBox.Text.Length)
{
var queryWithoutActionKeyword =