Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Application > API/Runtime/SlateCore/Application/FSlateApplicationBase
- FSlateApplicationBase::SetKeyboardFocus()
- FSlateApplication::SetKeyboardFocus()
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Application/SlateApplicationBase.h |
| Include | #include "Application/SlateApplicationBase.h" |
bool SetKeyboardFocus
&40;
const FWidgetPath & InFocusPath,
const EFocusCause InCause
&41;
Remarks
Sets keyboard focus to the specified widget. The widget must be allowed to receive keyboard focus. true if the widget is now focused, false otherwise.
Parameters
| Name | Description |
|---|---|
| InWidget | WidgetPath to the Widget to being focused |
| InCause | The reason that keyboard focus is changing |