1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-25 18:57:18 +08:00

Merge pull request #31876 from peppy/dont-focus-range-slider

Disallow focus on difficulty range slider
This commit is contained in:
Dan Balasescu 2025-02-14 16:10:53 +09:00 committed by GitHub
commit 35b8a3d3c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,8 @@ namespace osu.Game.Graphics.UserInterface
public abstract partial class OsuSliderBar<T> : SliderBar<T>, IHasTooltip
where T : struct, INumber<T>, IMinMaxValue<T>
{
public override bool AcceptsFocus => !Current.Disabled;
public bool PlaySamplesOnAdjust { get; set; } = true;
/// <summary>

View File

@ -162,6 +162,8 @@ namespace osu.Game.Graphics.UserInterface
protected partial class BoundSlider : RoundedSliderBar<double>
{
public override bool AcceptsFocus => false;
public new Nub Nub => base.Nub;
public string? DefaultString;