From 37329a2eaf67fea45fe2bee175757f9c2acb9490 Mon Sep 17 00:00:00 2001 From: dexy Date: Sun, 21 Nov 2021 05:02:30 +1100 Subject: [PATCH] Attempt to refocus WorldForm when selecting objects with ProjectForm open - ProjectForm is/was stealing focus due to DockPanel issue --- CodeWalker/Project/ProjectForm.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CodeWalker/Project/ProjectForm.cs b/CodeWalker/Project/ProjectForm.cs index 11e45a8..87a5070 100644 --- a/CodeWalker/Project/ProjectForm.cs +++ b/CodeWalker/Project/ProjectForm.cs @@ -7680,6 +7680,10 @@ namespace CodeWalker.Project ShowCurrentProjectItem(false); ShowProjectItemInProcess = false; } + if (WorldForm != null) + { + WorldForm.Focus();//sometimes newly created panel steals focus from the WorldForm, this is a hack to give it back + } } } catch { }