Disable setting keys in the same ruleset with the same bindings
- Addresses #20107
Can no longer set keys in the same ruleset with the same bindings but it may need feedback like a toast or an animation.
Keep in mind that this isn't enforcing anything. If the key bindings are already set they are still going to be usable.
I believe you'll also need some extra logic around this point:
https://github.com/ppy/osu/blob/31a447fda0532fcf15f8c8251ca890c533386492/osu.Game/Rulesets/UI/RulesetInputManager.cs#L205
Keep in mind that this isn't enforcing anything. If the key bindings are already set they are still going to be usable.
I believe you'll also need some extra logic around this point:
https://github.com/ppy/osu/blob/31a447fda0532fcf15f8c8251ca890c533386492/osu.Game/Rulesets/UI/RulesetInputManager.cs#L205
I don't quite understand what this does.
Let me explain another way: Your change is only blocking UI level changes. If the user already has bindings set in the realm database, or manually sets it externally, the changes you've made are not going to have any effect.
No test coverage was added to check the recent fix to the issue I mentioned. Should be added to make review of this PR easier.