1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-29 05:27:46 +08:00

Escape to cancel, again

This commit is contained in:
Dean Herbert 2017-08-16 23:01:10 +09:00
parent c41ba7b704
commit e64f455ff7

View File

@ -142,8 +142,12 @@ namespace osu.Game.Overlays.KeyBinding
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{
if (args.Key == Key.Delete)
switch (args.Key)
{
case Key.Escape:
GetContainingInputManager().ChangeFocus(null);
return true;
case Key.Delete:
bindTarget.UpdateKeyCombination(Key.Unknown);
store.Update(bindTarget.KeyBinding);
GetContainingInputManager().ChangeFocus(null);