FSlateApplicationBase::GetKeyboardFocusedWidget

Gets the widget that currently has keyboard focus, if any.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FSlateApplicationBase::GetKeyboardFocusedWidget()

FSlateApplication::GetKeyboardFocusedWidget()

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Application/SlateApplicationBase.h

Include

#include "Application/SlateApplicationBase.h"

Syntax

TSharedPtr< SWidget > GetKeyboardFocusedWidget() const

Remarks

Gets the widget that currently has keyboard focus, if any.

Returns

The focused widget, or nullptr if no widget has focus.