RealDocs

UKismetInputLibrary::InputChord_GetDisplayName

function Engine Blueprint Since unknown
#include "Kismet/KismetInputLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Returns the localized, human-readable display name for an input chord, such as "Ctrl+Shift+S".

Caveats & Gotchas

  • The parameter is named Key even though it takes an FInputChord, not a single FKey — don't confuse this with Key_GetDisplayName.
  • Formatting (separator characters, key ordering) follows platform convention and can differ between Windows, Mac, and Linux.

Signature

static FText InputChord_GetDisplayName(const FInputChord& Key);

Parameters

Name Type Description Default
Key const FInputChord& The input chord to get the display name for.

Return Type

FText

Example

Show a hotkey label in a settings menu C++
void UMyWidget::UpdateHotkeyLabel(const FInputChord& SaveChord)
{
    const FText DisplayName = UKismetInputLibrary::InputChord_GetDisplayName(SaveChord);
    HotkeyLabelText->SetText(DisplayName);
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.