mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Set focus on text box control on hotkey invoke (#1859)
This commit is contained in:
committed by
GitHub
parent
96fbc968ef
commit
5c01e0e852
@@ -21,7 +21,8 @@
|
||||
TextElement.FontSize="14"
|
||||
FontFamily="pack://application:,,,/MaterialDesignThemes.Wpf;component/Resources/Roboto/#Roboto"
|
||||
Deactivated="Window_Deactivated"
|
||||
ShowInTaskbar="false">
|
||||
ShowInTaskbar="false"
|
||||
GotFocus="Window_GotFocus">
|
||||
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
|
||||
@@ -114,5 +114,10 @@ namespace WindowWalker
|
||||
viewModel.WindowHideCommand.Execute(null);
|
||||
}
|
||||
}
|
||||
|
||||
private void Window_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.searchBox.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user