mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 08:22:56 +08:00
Use OnChange instead of OnCommit
OnCommit only gets fired when focus is lost
This commit is contained in:
parent
046732b7e3
commit
2d691ca8d5
@ -51,7 +51,7 @@ namespace osu.Game.Screens.Select
|
||||
}
|
||||
};
|
||||
|
||||
searchTextBox.OnCommit += (sender, newText) =>
|
||||
searchTextBox.OnChange += (TextBox sender, bool newText) =>
|
||||
{
|
||||
if (newText)
|
||||
FilterChanged?.Invoke();
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user