Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Input > API/Runtime/Slate/Widgets/Input/SInputKeySelector
- SWidget::OnPreviewKeyDown()
- SInputKeySelector::OnPreviewKeyDown()
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SInputKeySelector.h |
| Include | #include "Widgets/Input/SInputKeySelector.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Widgets/Input/SInputKeySelector.cpp |
virtual FReply OnPreviewKeyDown
&40;
const FGeometry & MyGeometry,
const FKeyEvent & InKeyEvent
&41;
Remarks
Called after a key is pressed when this widget or a child of this widget has focus If a widget handles this event, OnKeyDown will not be passed to the focused widget.
This event is primarily to allow parent widgets to consume an event before a child widget processes it and it should be used only when there is no better design alternative. 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 |