mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 05:32:55 +08:00
Fix crash when holding a key down while entering player
This commit is contained in:
parent
c2413543ca
commit
47c7673c9e
@ -136,6 +136,8 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
public void Deactivate()
|
public void Deactivate()
|
||||||
{
|
{
|
||||||
|
searchTextBox.ReadOnly = true;
|
||||||
|
|
||||||
searchTextBox.HoldFocus = false;
|
searchTextBox.HoldFocus = false;
|
||||||
if (searchTextBox.HasFocus)
|
if (searchTextBox.HasFocus)
|
||||||
GetContainingInputManager().ChangeFocus(searchTextBox);
|
GetContainingInputManager().ChangeFocus(searchTextBox);
|
||||||
@ -143,6 +145,7 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
public void Activate()
|
public void Activate()
|
||||||
{
|
{
|
||||||
|
searchTextBox.ReadOnly = false;
|
||||||
searchTextBox.HoldFocus = true;
|
searchTextBox.HoldFocus = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user