SWidget::HasKeyboardFocus

Checks to see if this widget currently has the keyboard focus

Windows
MacOS
Linux

Override Hierarchy

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWidget.h

Include

#include "Widgets/SWidget.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SWidget.cpp

Syntax

virtual bool HasKeyboardFocus() const

Remarks

Checks to see if this widget currently has the keyboard focus

Returns

True if this widget has keyboard focus

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