Josh Engebretson 10 lat temu
rodzic
commit
3831eae6b8

+ 3 - 0
Source/AtomicEditor/Source/UI/Modal/UIBuildComplete.cpp

@@ -120,6 +120,9 @@ void UIBuildComplete::Show()
 
 void UIBuildComplete::Hide()
 {
+    TBUI* tbui = GetSubsystem<TBUI>();
+    tbui->GetRootWidget()->SetFocusRecursive(WIDGET_FOCUS_REASON_UNKNOWN);
+
     if (dimmer_->GetParent())
         dimmer_->GetParent()->RemoveChild(dimmer_);
 

+ 3 - 0
Source/AtomicEditor/Source/UI/Modal/UIModalOps.cpp

@@ -100,6 +100,9 @@ void UIModalOps::Hide()
 
     opWindow_ = NULL;
 
+    TBUI* tbui = GetSubsystem<TBUI>();
+    tbui->GetRootWidget()->SetFocusRecursive(WIDGET_FOCUS_REASON_UNKNOWN);
+
     isHiding_ = false;
 
 }

+ 3 - 0
Source/AtomicEditor/Source/UI/Modal/UIProgressModal.cpp

@@ -82,6 +82,9 @@ void ProgressModal::Show()
 void ProgressModal::Hide()
 {
 
+    TBUI* tbui = GetSubsystem<TBUI>();
+    tbui->GetRootWidget()->SetFocusRecursive(WIDGET_FOCUS_REASON_UNKNOWN);
+
     if (dimmer_->GetParent())
         dimmer_->GetParent()->RemoveChild(dimmer_);