File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public TagEditView()
1414 }
1515
1616 //makes objects lose focus when clicked away
17- private void MainGrid_MouseDown ( object sender , MouseButtonEventArgs e ) => MainGrid . Focus ( ) ;
17+ private void MainGrid_MouseDown ( object sender , MouseButtonEventArgs e ) => Keyboard . ClearFocus ( ) ;
1818
1919 private void TagNameTextBox_Loaded ( object sender , System . Windows . RoutedEventArgs e )
2020 {
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ public CodexBulkEditWindow(CodexBulkEditViewModel vm)
1818 ( ( CodexBulkEditViewModel ) DataContext ) . CloseAction = Close ;
1919 }
2020
21- private void MainGrid_MouseDown ( object sender , MouseButtonEventArgs e ) => MainGrid . Focus ( ) ;
21+ private void MainGrid_MouseDown ( object sender , MouseButtonEventArgs e ) => Keyboard . ClearFocus ( ) ;
2222 }
2323}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public CodexEditWindow(CodexEditViewModel vm)
2222 AuthorsComboBox . ApplyTemplate ( ) ;
2323 }
2424
25- private void MainGrid_MouseDown ( object sender , MouseButtonEventArgs e ) => MainGrid . Focus ( ) ;
25+ private void MainGrid_MouseDown ( object sender , MouseButtonEventArgs e ) => Keyboard . ClearFocus ( ) ;
2626
2727 // https://serialseb.com/blog/2007/09/03/wpf-tips-6-preventing-scrollviewer-from/
2828 private void treeView_PreviewMouseWheel ( object sender , MouseWheelEventArgs e )
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public MainWindow()
2929 private readonly MainViewModel MainViewModel ;
3030
3131 //Deselects when you click away
32- private void Window_MouseDown ( object sender , MouseButtonEventArgs e ) => MainGrid . Focus ( ) ;
32+ private void Window_MouseDown ( object sender , MouseButtonEventArgs e ) => Keyboard . ClearFocus ( ) ;
3333
3434 private void Window_Closing ( object sender , CancelEventArgs e )
3535 {
You can’t perform that action at this time.
0 commit comments