1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-16 00:13:12 +08:00

Changed mapping of deleting key binding to shift+delete

This commit is contained in:
aQaTL 2018-04-10 18:00:22 +02:00
parent dbee936748
commit 38277bff35
No known key found for this signature in database
GPG Key ID: 181719411A8555F0

View File

@ -200,25 +200,18 @@ namespace osu.Game.Overlays.KeyBinding
KeyCombination keyCombination = KeyCombination.FromInputState(state);
switch (args.Key)
if (keyCombination.Equals(InputKey.Escape))
{
case Key.Escape:
finalise();
return true;
case Key.Delete:
if (keyCombination.Equals(InputKey.Delete))
}
if (keyCombination.Equals(new[] { InputKey.Shift, InputKey.Delete }))
{
bindTarget.UpdateKeyCombination(InputKey.None);
finalise();
return true;
}
else if (keyCombination.Equals(new[] { InputKey.Alt, InputKey.Delete }))
{
keyCombination = InputKey.Delete;
}
break;
}
bindTarget.UpdateKeyCombination(keyCombination);
if (!isModifier(args.Key)) finalise();