Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UWidgetInteractionComponent
Description
Press a key as if it had come from the keyboard. Avoid using this for 'a-z|A-Z', things like the Editable Textbox in Slate expect OnKeyChar to be called to signal a specific character being send to the widget. So for those cases you should use SendKeyChar.
| Name | PressKey |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/WidgetInteractionComponent.h |
| Include Path | #include "Components/WidgetInteractionComponent.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Components/WidgetInteractionComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Interaction")
virtual bool PressKey
(
FKey Key,
bool bRepeat
)