mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 05:27:23 +08:00
Ensure hotkey actions are executable in handler
This commit is contained in:
parent
d45520be5e
commit
18428dff8e
@ -115,13 +115,13 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
switch (e.Key)
|
switch (e.Key)
|
||||||
{
|
{
|
||||||
case Key.G:
|
case Key.G:
|
||||||
return OnReverse?.Invoke() == true;
|
return CanReverse && OnReverse?.Invoke() == true;
|
||||||
|
|
||||||
case Key.H:
|
case Key.H:
|
||||||
return OnFlip?.Invoke(Direction.Horizontal) == true;
|
return CanScaleX && OnFlip?.Invoke(Direction.Horizontal) == true;
|
||||||
|
|
||||||
case Key.J:
|
case Key.J:
|
||||||
return OnFlip?.Invoke(Direction.Vertical) == true;
|
return CanScaleY && OnFlip?.Invoke(Direction.Vertical) == true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return base.OnKeyDown(e);
|
return base.OnKeyDown(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user