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:
parent
dbee936748
commit
38277bff35
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user