SWidget::HasKeyboardFocus

Checks to see if this widget currently has the keyboard focus

Choose your operating system:

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