mirror of
https://github.com/ppy/osu.git
synced 2025-03-23 19:07:20 +08:00
Switched back to switch
This commit is contained in:
parent
90beff83f6
commit
1dc8986c22
@ -198,22 +198,25 @@ namespace osu.Game.Overlays.KeyBinding
|
||||
if (!HasFocus)
|
||||
return false;
|
||||
|
||||
KeyCombination keyCombination = KeyCombination.FromInputState(state);
|
||||
|
||||
if (keyCombination.Equals(InputKey.Escape))
|
||||
switch (args.Key)
|
||||
{
|
||||
finalise();
|
||||
return true;
|
||||
case Key.Escape:
|
||||
finalise();
|
||||
return true;
|
||||
case Key.Delete:
|
||||
{
|
||||
if (state.Keyboard.ShiftPressed)
|
||||
{
|
||||
bindTarget.UpdateKeyCombination(InputKey.None);
|
||||
finalise();
|
||||
return true;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (keyCombination.Equals(new[] { InputKey.Shift, InputKey.Delete }))
|
||||
{
|
||||
bindTarget.UpdateKeyCombination(InputKey.None);
|
||||
finalise();
|
||||
return true;
|
||||
}
|
||||
|
||||
bindTarget.UpdateKeyCombination(keyCombination);
|
||||
bindTarget.UpdateKeyCombination(KeyCombination.FromInputState(state));
|
||||
if (!isModifier(args.Key)) finalise();
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user