How can I change focus to Slate and back?

Hey,

For anyone arriving here after hours of failures and tears^^, OnKeyboardFocusReceived is deprecated since 4.6.

Here is some working code (currently 4.10):

.h
virtual bool SupportsKeyboardFocus() const override { return true; }
virtual FReply OnFocusReceived(const FGeometry& MyGeometry, const FFocusEvent& InFocusEvent) override;

--------------------------------------------------------------------------------------------
.cpp
FReply MyWidget::OnFocusReceived(const FGeometry& MyGeometry, const FFocusEvent& InFocusEvent)
{
	return FReply::Handled().ReleaseMouseCapture();
}

Cheers

Cedric