mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-05 04:39:08 +08:00
Optimize for text selection after pressing Win+R
This commit is contained in:
parent
1281059076
commit
8a6690b6df
@ -305,12 +305,14 @@ namespace Wox
|
|||||||
private void OnWinRPressed()
|
private void OnWinRPressed()
|
||||||
{
|
{
|
||||||
ShowWox(false);
|
ShowWox(false);
|
||||||
if (tbQuery.Text != ">")
|
if (!tbQuery.Text.StartsWith(">"))
|
||||||
{
|
{
|
||||||
resultCtrl.Clear();
|
resultCtrl.Clear();
|
||||||
ChangeQuery(">");
|
ChangeQuery(">");
|
||||||
}
|
}
|
||||||
tbQuery.CaretIndex = tbQuery.Text.Length;
|
tbQuery.CaretIndex = tbQuery.Text.Length;
|
||||||
|
tbQuery.SelectionStart = 1;
|
||||||
|
tbQuery.SelectionLength = tbQuery.Text.Length - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateCmdMode()
|
private void updateCmdMode()
|
||||||
|
Loading…
Reference in New Issue
Block a user