Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Widgets > API/Runtime/SlateCore/Widgets/SWidget
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Widgets/SWidget.h |
| Include | #include "Widgets/SWidget.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Widgets/SWidget.cpp |
virtual FReply OnKeyDown
(
const FGeometry & MyGeometry,
const FKeyEvent & InKeyEvent
)
Remarks
Called after a key is pressed when this widget has focus (this event bubbles if not handled) Returns whether the event was handled, along with other possible actions
Parameters
| Name | Description |
|---|---|
| MyGeometry | The Geometry of the widget receiving the event |
| InKeyEvent | Key event |