1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 06:29:54 +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
Unverified
parent 046732b7e3
commit 2d691ca8d5
2 changed files with 2 additions and 2 deletions
+1 -1
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();
+1 -1
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);
}