mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 16:43:04 +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)
|
if (newText)
|
||||||
FilterChanged?.Invoke();
|
FilterChanged?.Invoke();
|
||||||
|
@ -222,7 +222,7 @@ namespace osu.Game.Screens.Select
|
|||||||
}
|
}
|
||||||
if (newSelection != null)
|
if (newSelection != null)
|
||||||
selectBeatmap(newSelection.BeatmapSet.Beatmaps[0]);
|
selectBeatmap(newSelection.BeatmapSet.Beatmaps[0]);
|
||||||
if (changed || true)
|
if (changed)
|
||||||
carousel.InvalidateVisible();
|
carousel.InvalidateVisible();
|
||||||
}, 250);
|
}, 250);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user