mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Ensure hotkey actions are executable in handler
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user