1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Fix bindings being cleared if multiple bindings for same action have the same combination

This actually seems to be the case in catch (dash is bound to shift
twice). This is annoying but harmless, so let's work around it for now
to avoid ruining users' configs.
This commit is contained in:
Bartłomiej Dach 2023-10-16 21:29:42 +02:00
parent 3aae07d1ca
commit 828cedea33
No known key found for this signature in database

View File

@ -145,7 +145,7 @@ namespace osu.Game.Input
foreach (var group in lookup) foreach (var group in lookup)
{ {
if (group.Count() <= 1) if (group.Select(kb => kb.Action).Distinct().Count() <= 1)
continue; continue;
foreach (var binding in group) foreach (var binding in group)