mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:52:57 +08:00
Fix selection handlers eating hotkey presses they didn't handle
This commit is contained in:
parent
0940ab1e11
commit
e4e08c0f5f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user