UKismetInputLibrary::InputEvent_IsRightCommandDown
#include "Kismet/KismetInputLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns true if specifically the right Command key was held down when this input event occurred.
Caveats & Gotchas
- • Some platforms and virtual keyboards do not distinguish left/right modifier keys at the hardware level, in which case this can report false even while InputEvent_IsCommandDown reports true.
- • Rarely needed in practice — most Command-modified shortcuts treat left and right identically, so InputEvent_IsCommandDown is the more common choice.
Signature
static bool InputEvent_IsRightCommandDown(const FInputEvent& Input); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Input | const FInputEvent& | The input event to test. | — |
Return Type
bool Example
Detect right Command specifically C++
FReply UMyWidget::NativeOnKeyDown(const FGeometry& InGeometry, const FKeyEvent& InKeyEvent)
{
if (UKismetInputLibrary::InputEvent_IsRightCommandDown(InKeyEvent))
{
ToggleSecondaryPanel();
}
return FReply::Handled();
} See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?