mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Optimize for text selection after pressing Win+R
This commit is contained in:
parent
1281059076
commit
8a6690b6df
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue