mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 18:32:54 +08:00
Toogle visibility without ctrl pressed
This commit is contained in:
parent
bedcf04043
commit
b5a6d73104
@ -48,15 +48,12 @@ 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:
|
case Key.H:
|
||||||
toogleVisibility();
|
toogleVisibility();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return base.OnKeyDown(state, args);
|
return base.OnKeyDown(state, args);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user