Add exception when holding control

This commit is contained in:
Dean Herbert 2019-11-05 18:29:08 +09:00
parent f77de7d880
commit f4b93ec943

View File

@ -255,7 +255,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
Debug.Assert(!clickSelectionBegan);
// If a select blueprint is already hovered, disallow changes in selection.
if (selectionHandler.SelectedBlueprints.Any(s => s.IsHovered))
// Exception is made when holding control, as deselection should still be allowed.
if (!e.CurrentState.Keyboard.ControlPressed &&
selectionHandler.SelectedBlueprints.Any(s => s.IsHovered))
return;
foreach (SelectionBlueprint blueprint in selectionBlueprints.AliveBlueprints)