From 828cedea33d85879afd07c7906439284a78cc654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Mon, 16 Oct 2023 21:29:42 +0200 Subject: [PATCH] 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. --- osu.Game/Input/RealmKeyBindingStore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Input/RealmKeyBindingStore.cs b/osu.Game/Input/RealmKeyBindingStore.cs index 0c48a4c16c..48ace58235 100644 --- a/osu.Game/Input/RealmKeyBindingStore.cs +++ b/osu.Game/Input/RealmKeyBindingStore.cs @@ -145,7 +145,7 @@ namespace osu.Game.Input foreach (var group in lookup) { - if (group.Count() <= 1) + if (group.Select(kb => kb.Action).Distinct().Count() <= 1) continue; foreach (var binding in group)