1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 21:02:55 +08:00

Toogle visibility without ctrl pressed

This commit is contained in:
EVAST9919 2017-05-27 02:38:29 +03:00
parent bedcf04043
commit b5a6d73104

View File

@ -48,14 +48,11 @@ namespace osu.Game.Screens.Play.ReplaySettings
{ {
if (args.Repeat) return false; if (args.Repeat) return false;
if (state.Keyboard.ControlPressed) switch (args.Key)
{ {
switch (args.Key) case Key.H:
{ toogleVisibility();
case Key.H: return true;
toogleVisibility();
return true;
}
} }
return base.OnKeyDown(state, args); return base.OnKeyDown(state, args);