diff --git a/Wox/MainWindow.xaml.cs b/Wox/MainWindow.xaml.cs index 566b2b67f4..c11ebf1a44 100644 --- a/Wox/MainWindow.xaml.cs +++ b/Wox/MainWindow.xaml.cs @@ -305,12 +305,14 @@ namespace Wox private void OnWinRPressed() { ShowWox(false); - if (tbQuery.Text != ">") + if (!tbQuery.Text.StartsWith(">")) { resultCtrl.Clear(); ChangeQuery(">"); } tbQuery.CaretIndex = tbQuery.Text.Length; + tbQuery.SelectionStart = 1; + tbQuery.SelectionLength = tbQuery.Text.Length - 1; } private void updateCmdMode()