mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
[PTRun]Fix focus glitch on first time run (#17128)
This commit is contained in:
@@ -205,6 +205,10 @@ namespace PowerLauncher
|
|||||||
UpdatePosition();
|
UpdatePosition();
|
||||||
BringProcessToForeground();
|
BringProcessToForeground();
|
||||||
|
|
||||||
|
// HACK: Setting focus here again fixes some focus issues, like on first run or after showing a message box.
|
||||||
|
SearchBox.QueryTextBox.Focus();
|
||||||
|
Keyboard.Focus(SearchBox.QueryTextBox);
|
||||||
|
|
||||||
if (!_viewModel.LastQuerySelected)
|
if (!_viewModel.LastQuerySelected)
|
||||||
{
|
{
|
||||||
_viewModel.LastQuerySelected = true;
|
_viewModel.LastQuerySelected = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user