Set focus on text box control on hotkey invoke (#1859)
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue