ISlateViewport::OnKeyDown

Called by Slate when a key is pressed inside the viewport

Windows
MacOS
Linux

Override Hierarchy

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h

Include

#include "Rendering/RenderingCommon.h"

Syntax

virtual FReply OnKeyDown
(
    const FGeometry & MyGeometry,
    const FKeyEvent & InKeyEvent
)

Remarks

Called by Slate when a key is pressed inside the viewport

Returns

Whether the event was handled along with possible requests for the system to take action.

Parameters

Parameter

Description

MyGeometry

Information about the location and size of the viewport

MouseEvent

Information about the key event

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss