mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
[PTRun]Fix focus glitch on first time run (#17128)
This commit is contained in:
@@ -205,6 +205,10 @@ namespace PowerLauncher
|
||||
UpdatePosition();
|
||||
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)
|
||||
{
|
||||
_viewModel.LastQuerySelected = true;
|
||||
|
||||
Reference in New Issue
Block a user