RealDocs

UKismetInputLibrary::InputEvent_IsShiftDown

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

Description

Returns true if either the left or right Shift key was held down when this input event occurred.

Caveats & Gotchas

  • Reflects the modifier state at the moment the event fired, not the current live key state — do not poll it every tick expecting it to update.
  • Does not distinguish left from right Shift; use InputEvent_IsLeftShiftDown or InputEvent_IsRightShiftDown for that.

Signature

static bool InputEvent_IsShiftDown(const FInputEvent& Input);

Parameters

Name Type Description Default
Input const FInputEvent& The input event to test.

Return Type

bool

Example

Modify an action while Shift is held C++
FReply UMyWidget::NativeOnKeyDown(const FGeometry& InGeometry, const FKeyEvent& InKeyEvent)
{
    const bool bFastScroll = UKismetInputLibrary::InputEvent_IsShiftDown(InKeyEvent);
    ScrollList(bFastScroll ? FastScrollAmount : NormalScrollAmount);
    return FReply::Handled();
}

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.