diff --git a/source/Playnite.DesktopApp/Windows/SearchWindow.xaml b/source/Playnite.DesktopApp/Windows/SearchWindow.xaml
index 5ee2670f4..066a93bab 100644
--- a/source/Playnite.DesktopApp/Windows/SearchWindow.xaml
+++ b/source/Playnite.DesktopApp/Windows/SearchWindow.xaml
@@ -43,8 +43,8 @@
-
-
+
+
diff --git a/source/Playnite/ViewModels/SearchViewModel.cs b/source/Playnite/ViewModels/SearchViewModel.cs
index 2e8fd1165..d18e7c68d 100644
--- a/source/Playnite/ViewModels/SearchViewModel.cs
+++ b/source/Playnite/ViewModels/SearchViewModel.cs
@@ -427,7 +427,7 @@ public string SearchTerm
public RelayCommand TextBoxKeyDownCommand => new RelayCommand((keyArgs) => TextBoxKeyDown(keyArgs));
public RelayCommand TextBoxKeyUpCommand => new RelayCommand((keyArgs) => TextBoxKeyUp(keyArgs));
public RelayCommand WindowClosedCommand => new RelayCommand((_) => WindowClosed(_));
- public RelayCommand WindowLostKeyboardFocusCommand => new RelayCommand((_) => WindowLostKeyboardFocus(_));
+ public RelayCommand WindowDeactivatedCommand => new RelayCommand((_) => WindowDeactivated(_));
public RelayCommand ToggleHintCommand => new RelayCommand(() => ToggleHint());
public RelayCommand OpenSearchSettingsCommand => new RelayCommand(() => OpenSearchSettings());
public RelayCommand DeactiveCurrentContextCommand => new RelayCommand(() => DeactiveCurrentContext());
@@ -557,7 +557,7 @@ public void Close()
window.Close();
}
- private void WindowLostKeyboardFocus(EventArgs args)
+ private void WindowDeactivated(EventArgs args)
{
// The view would get automatically closed once you switch to debugger...
if (Debugger.IsAttached)