mirror of
https://github.com/ppy/osu
synced 2025-01-20 21:10:49 +00:00
Escape to cancel, again
This commit is contained in:
parent
c41ba7b704
commit
e64f455ff7
@ -142,12 +142,16 @@ namespace osu.Game.Overlays.KeyBinding
|
||||
|
||||
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
|
||||
{
|
||||
if (args.Key == Key.Delete)
|
||||
switch (args.Key)
|
||||
{
|
||||
bindTarget.UpdateKeyCombination(Key.Unknown);
|
||||
store.Update(bindTarget.KeyBinding);
|
||||
GetContainingInputManager().ChangeFocus(null);
|
||||
return true;
|
||||
case Key.Escape:
|
||||
GetContainingInputManager().ChangeFocus(null);
|
||||
return true;
|
||||
case Key.Delete:
|
||||
bindTarget.UpdateKeyCombination(Key.Unknown);
|
||||
store.Update(bindTarget.KeyBinding);
|
||||
GetContainingInputManager().ChangeFocus(null);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (HasFocus)
|
||||
|
Loading…
Reference in New Issue
Block a user