chore: [ci skip] rename InputElement_OnGotFocus/OnLostFocus to fit what it's listening to better

This commit is contained in:
GreemDev 2025-11-08 03:21:02 -06:00
parent 17d5d6e65a
commit 58be57bf73
2 changed files with 4 additions and 4 deletions

View file

@ -23,8 +23,8 @@
mc:Ignorable="d" mc:Ignorable="d"
WindowStartupLocation="Manual" WindowStartupLocation="Manual"
Focusable="True" Focusable="True"
GotFocus="InputElement_OnGotFocus" GotFocus="AppWindow_OnGotFocus"
LostFocus="InputElement_OnLostFocus"> LostFocus="AppWindow_OnLostFocus">
<Window.Styles> <Window.Styles>
<Style Selector="TitleBar:fullscreen"> <Style Selector="TitleBar:fullscreen">
<Setter Property="Background" Value="#000000" /> <Setter Property="Background" Value="#000000" />

View file

@ -771,7 +771,7 @@ namespace Ryujinx.Ava.UI.Windows
_intelMacWarningShown = true; _intelMacWarningShown = true;
} }
private void InputElement_OnGotFocus(object sender, GotFocusEventArgs e) private void AppWindow_OnGotFocus(object sender, GotFocusEventArgs e)
{ {
if (ViewModel.AppHost is null) if (ViewModel.AppHost is null)
return; return;
@ -835,7 +835,7 @@ namespace Ryujinx.Ava.UI.Windows
private (FocusLostType Type, bool Active) _focusLoss; private (FocusLostType Type, bool Active) _focusLoss;
private void InputElement_OnLostFocus(object sender, RoutedEventArgs e) private void AppWindow_OnLostFocus(object sender, RoutedEventArgs e)
{ {
if (ConfigurationState.Instance.FocusLostActionType.Value is FocusLostType.DoNothing) if (ConfigurationState.Instance.FocusLostActionType.Value is FocusLostType.DoNothing)
return; return;