mirror of
https://github.com/ppy/osu
synced 2024-12-17 04:15:37 +00:00
Workaround implementation oversight
See https://github.com/ppy/osu-framework/pull/6130.
This commit is contained in:
parent
58ade18c06
commit
0934cff501
@ -140,7 +140,8 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
/// <param name="fullState">A <see cref="KeyCombination"/> generated from the full input state.</param>
|
||||
/// <param name="triggerKey">The key which triggered this update, and should be used as the binding.</param>
|
||||
public void UpdateKeyCombination(KeyCombination fullState, InputKey triggerKey) =>
|
||||
UpdateKeyCombination(new KeyCombination(fullState.Keys.Where(KeyCombination.IsModifierKey).Append(triggerKey).ToArray()));
|
||||
// TODO: Distinct() can be removed after https://github.com/ppy/osu-framework/pull/6130 is merged.
|
||||
UpdateKeyCombination(new KeyCombination(fullState.Keys.Where(KeyCombination.IsModifierKey).Append(triggerKey).Distinct().ToArray()));
|
||||
|
||||
public void UpdateKeyCombination(KeyCombination newCombination)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user