UMG and Focus

Hi, everyone!

I have the next situation: I have bottom layer widget to catch everything about mouse movement and clicks. But above that are some buttons. When I click on any of them focus move to button and so my bottom layer just become unfocused and all UMG events are stopped. It’s of course is correct behaviour. I can force focus to return to my bottom layer widget with

FSlateApplication::Get().SetAllUserFocus(LowerBoundWidget.ToSharedRef());

But just think that it wouldnt be great to add this line after all of UMG actions that can cause change of focus. Maybe there is some more rational way to do it?

Find out that everything can be done with configuring focus on other elements. So the answer is - just set IsFocusable to false on every such widget that steal focus.