1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:23:21 +08:00

Use OnChange instead of OnCommit

OnCommit only gets fired when focus is lost
This commit is contained in:
Drew DeVault 2017-02-01 19:11:24 -05:00
parent 046732b7e3
commit 2d691ca8d5
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ namespace osu.Game.Screens.Select
}
};
searchTextBox.OnCommit += (sender, newText) =>
searchTextBox.OnChange += (TextBox sender, bool newText) =>
{
if (newText)
FilterChanged?.Invoke();

View File

@ -222,7 +222,7 @@ namespace osu.Game.Screens.Select
}
if (newSelection != null)
selectBeatmap(newSelection.BeatmapSet.Beatmaps[0]);
if (changed || true)
if (changed)
carousel.InvalidateVisible();
}, 250);
}