1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 19:27:24 +08:00

Fix selection handlers eating hotkey presses they didn't handle

This commit is contained in:
Bartłomiej Dach 2023-06-28 20:48:22 +02:00
parent 0940ab1e11
commit e4e08c0f5f
No known key found for this signature in database

View File

@ -160,21 +160,23 @@ namespace osu.Game.Screens.Edit.Compose.Components
if (e.Repeat)
return false;
bool handled;
switch (e.Action)
{
case GlobalAction.EditorFlipHorizontally:
ChangeHandler?.BeginChange();
HandleFlip(Direction.Horizontal, true);
handled = HandleFlip(Direction.Horizontal, true);
ChangeHandler?.EndChange();
return true;
return handled;
case GlobalAction.EditorFlipVertically:
ChangeHandler?.BeginChange();
HandleFlip(Direction.Vertical, true);
handled = HandleFlip(Direction.Vertical, true);
ChangeHandler?.EndChange();
return true;
return handled;
}
return false;