Fix for multiple selection from project explorer bug

This commit is contained in:
dexy 2020-02-25 16:40:40 +11:00
parent 2cd61469e2
commit 070a2be42e

View File

@ -2277,8 +2277,9 @@ namespace CodeWalker.Project.Panels
private void ProjectTreeView_AfterSelect(object sender, TreeViewEventArgs e)
{
bool addSelection = Focused && ((ModifierKeys & Keys.Control) > 0);
bool fillSelection = Focused && ((ModifierKeys & Keys.Shift) > 0);
bool focused = ProjectForm?.ContainsFocus ?? this.ContainsFocus;
bool addSelection = focused && ((ModifierKeys & Keys.Control) > 0);
bool fillSelection = focused && ((ModifierKeys & Keys.Shift) > 0);
if (addSelection)
{
if (SelectedNodes.Contains(e.Node))