1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 10:23:20 +08:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Dan Balasescu
191c972e63
Merge pull request #8409 from peppy/fix-song-select-play-crash
Fix crash when holding a key down while entering player
2020-03-24 13:27:57 +09:00
Dan Balasescu
d574fabf7d
Merge branch 'master' into fix-song-select-play-crash 2020-03-24 12:54:10 +09:00
Dean Herbert
47c7673c9e Fix crash when holding a key down while entering player 2020-03-23 17:04:54 +09:00

View File

@ -136,6 +136,8 @@ namespace osu.Game.Screens.Select
public void Deactivate()
{
searchTextBox.ReadOnly = true;
searchTextBox.HoldFocus = false;
if (searchTextBox.HasFocus)
GetContainingInputManager().ChangeFocus(searchTextBox);
@ -143,6 +145,7 @@ namespace osu.Game.Screens.Select
public void Activate()
{
searchTextBox.ReadOnly = false;
searchTextBox.HoldFocus = true;
}