FSlateApplication::SetKeyboardFocus

Sets the Keyboard focus to the specified [SWidget](API\Runtime\SlateCore\Widgets\SWidget)

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h

Include

#include "Framework/Application/SlateApplication.h"

Source

/Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp

Syntax

bool SetKeyboardFocus
(
    const TSharedPtr< SWidget > & OptionalWidgetToFocus,
    EFocusCause ReasonFocusIsChanging
)

Remarks

Sets the Keyboard focus to the specified SWidget

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss