Fixed issue in which Output Log context menu doesn't close when it loses focus.

#jira UE-5216 - Output Log context menu difficult to close

[CL 2354673 by Richard TalbotWatkin in Main branch]
This commit is contained in:
Richard TalbotWatkin
2014-11-10 11:59:19 -05:00
committed by UnrealBot
parent ec8b3c73ac
commit a48bcdfd3a
2 changed files with 4 additions and 4 deletions

View File

@@ -1973,8 +1973,8 @@ void SEditableText::SummonContextMenu( const FVector2D& InLocation )
#undef LOCTEXT_NAMESPACE
const bool bFocusImmediatley = false;
TSharedPtr< SWindow > ContextMenuWindowPinned = FSlateApplication::Get().PushMenu( SharedThis( this ), MenuBuilder.MakeWidget(), InLocation, FPopupTransitionEffect( FPopupTransitionEffect::ContextMenu ), bFocusImmediatley );
const bool bFocusImmediately = true;
TSharedPtr< SWindow > ContextMenuWindowPinned = FSlateApplication::Get().PushMenu( SharedThis( this ), MenuBuilder.MakeWidget(), InLocation, FPopupTransitionEffect( FPopupTransitionEffect::ContextMenu ), bFocusImmediately );
ContextMenuWindow = ContextMenuWindowPinned;
// Make sure the window is valid. It's possible for the parent to already be in the destroy queue, for example if the editable text was configured to dismiss it's window during OnTextCommitted.

View File

@@ -2076,8 +2076,8 @@ void SMultiLineEditableText::SummonContextMenu(const FVector2D& InLocation)
#undef LOCTEXT_NAMESPACE
const bool bFocusImmediatley = false;
TSharedPtr< SWindow > ContextMenuWindowPinned = FSlateApplication::Get().PushMenu(SharedThis(this), MenuBuilder.MakeWidget(), InLocation, FPopupTransitionEffect(FPopupTransitionEffect::ContextMenu), bFocusImmediatley);
const bool bFocusImmediately = true;
TSharedPtr< SWindow > ContextMenuWindowPinned = FSlateApplication::Get().PushMenu(SharedThis(this), MenuBuilder.MakeWidget(), InLocation, FPopupTransitionEffect(FPopupTransitionEffect::ContextMenu), bFocusImmediately);
ContextMenuWindow = ContextMenuWindowPinned;
// Make sure the window is valid. It's possible for the parent to already be in the destroy queue, for example if the editable text was configured to dismiss it's window during OnTextCommitted.