Navigation
API > API/Runtime > API/Runtime/SlateCore
Context for focus change
| Name | EFocusCause |
| Type | enum |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Input/Events.h |
| Include Path | #include "Input/Events.h" |
Syntax
enum EFocusCause
{
Mouse,
Navigation,
SetDirectly,
Cleared,
OtherWidgetLostFocus,
WindowActivate,
}
Values
| Name | Remarks |
|---|---|
| Mouse | Focus was changed because of a mouse action. |
| Navigation | Focus was changed in response to a navigation, such as the arrow keys, TAB key, controller DPad, ... |
| SetDirectly | Focus was changed because someone asked the application to change it. |
| Cleared | Focus was explicitly cleared via the escape key or other similar action. |
| OtherWidgetLostFocus | Focus was changed because another widget lost focus, and focus moved to a new widget. |
| WindowActivate | Focus was set in response to the owning window being activated. |