Move right-click deletion logic to be handled at a SelectionBlueprint level

This commit is contained in:
Dean Herbert
2020-10-27 12:53:54 +09:00
parent 266596d404
commit 27c1a4c4d3
3 changed files with 20 additions and 5 deletions

View File

@ -225,9 +225,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
/// <param name="state">The input state at the point of selection.</param>
internal void HandleSelectionRequested(SelectionBlueprint blueprint, InputState state)
{
if (state.Keyboard.ShiftPressed && state.Mouse.IsPressed(MouseButton.Right))
EditorBeatmap.Remove(blueprint.HitObject);
else if (state.Keyboard.ControlPressed)
if (state.Keyboard.ControlPressed)
blueprint.ToggleSelection();
else
ensureSelected(blueprint);