mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Optimize for text selection after pressing Win+R
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user