mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Fix some remaining usage of local InputManager instances
This commit is contained in:
parent
6ee4716ec5
commit
a5007fc64f
@ -152,7 +152,7 @@ namespace osu.Game.Overlays.Chat
|
||||
|
||||
protected override void OnFocus(InputState state)
|
||||
{
|
||||
InputManager.ChangeFocus(search);
|
||||
GetContainingInputManager().ChangeFocus(search);
|
||||
base.OnFocus(state);
|
||||
}
|
||||
|
||||
|
@ -243,7 +243,7 @@ namespace osu.Game.Overlays
|
||||
protected override void OnFocus(InputState state)
|
||||
{
|
||||
//this is necessary as inputTextBox is masked away and therefore can't get focus :(
|
||||
InputManager.ChangeFocus(inputTextBox);
|
||||
GetContainingInputManager().ChangeFocus(inputTextBox);
|
||||
base.OnFocus(state);
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ namespace osu.Game.Overlays
|
||||
settingsSection.Bounding = true;
|
||||
this.FadeIn(transition_time, Easing.OutQuint);
|
||||
|
||||
InputManager.ChangeFocus(settingsSection);
|
||||
GetContainingInputManager().ChangeFocus(settingsSection);
|
||||
}
|
||||
|
||||
protected override void PopOut()
|
||||
|
@ -103,7 +103,7 @@ namespace osu.Game.Overlays.SearchableList
|
||||
|
||||
protected override void OnFocus(InputState state)
|
||||
{
|
||||
InputManager.ChangeFocus(Filter.Search);
|
||||
GetContainingInputManager().ChangeFocus(Filter.Search);
|
||||
}
|
||||
|
||||
protected override void PopIn()
|
||||
|
@ -153,7 +153,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
searchTextBox.HoldFocus = false;
|
||||
if (searchTextBox.HasFocus)
|
||||
InputManager.ChangeFocus(null);
|
||||
GetContainingInputManager().ChangeFocus(null);
|
||||
}
|
||||
|
||||
public override bool AcceptsFocus => true;
|
||||
@ -162,7 +162,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
protected override void OnFocus(InputState state)
|
||||
{
|
||||
InputManager.ChangeFocus(searchTextBox);
|
||||
GetContainingInputManager().ChangeFocus(searchTextBox);
|
||||
base.OnFocus(state);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user