From 7f53877283af8851e83f9aef8805c8e918ed2d5b Mon Sep 17 00:00:00 2001 From: Alekhya Date: Wed, 22 Apr 2020 13:42:08 -0700 Subject: [PATCH] text is selected whenever launcher gets hidden and is then set to visible (#2315) --- src/modules/launcher/PowerLauncher/MainWindow.xaml.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs b/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs index 876d2747dd..6bf9a00747 100644 --- a/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs +++ b/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs @@ -169,6 +169,12 @@ namespace PowerLauncher { _viewModel.LastQuerySelected = true; } + + // to select the text so that the user can continue to type + if(!String.IsNullOrEmpty(_launcher.TextBox.Text)) + { + _launcher.TextBox.SelectAll(); + } } } };