Added the function of de-selecting items in content view and removed selecting first item

This commit is contained in:
Chandler Cox
2023-04-07 11:04:52 -05:00
parent 0c167f38b7
commit 133e192b98
2 changed files with 11 additions and 1 deletions

View File

@@ -941,6 +941,17 @@ namespace FlaxEditor.Windows
return true;
}
if (button == MouseButton.Left)
{
// Find control that is under the mouse
var c = GetChildAtRecursive(location);
if (c is ContentView)
{
_view.ClearSelection();
return true;
}
}
return base.OnMouseUp(location, button);
}