SViewport::OnKeyChar

Called after a character is entered while this widget has keyboard focus

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

SWidget::OnKeyChar()

SViewport::OnKeyChar()

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/SViewport.h

Include

#include "Widgets/SViewport.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/SViewport.cpp

Syntax

virtual FReply OnKeyChar
(
    const FGeometry & MyGeometry,
    const FCharacterEvent & InCharacterEvent
)

Remarks

Called after a character is entered while this widget has keyboard focus

Returns

Returns whether the event was handled, along with other possible actions

Parameters

Parameter

Description

MyGeometry

The Geometry of the widget receiving the event

InCharacterEvent

Character event