Fix for shift+move entities moving the original

This commit is contained in:
dexy 2020-02-05 16:36:14 +11:00
parent e95df81169
commit 1194334acb

View File

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