Files
UnrealEngine/Engine/Source/Editor/LevelInstanceEditor/Private/LevelInstanceEditorModeCommands.cpp
2025-05-18 13:04:45 +08:00

18 lines
774 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "LevelInstanceEditorModeCommands.h"
#include "Framework/Commands/InputChord.h"
#include "Framework/Commands/UICommandInfo.h"
#include "GenericPlatform/GenericApplication.h"
#include "InputCoreTypes.h"
#define LOCTEXT_NAMESPACE "LevelInstanceEditorModeCommands"
void FLevelInstanceEditorModeCommands::RegisterCommands()
{
UI_COMMAND(ExitMode, "Exit Mode", "Exits mode asking to save pending changes", EUserInterfaceActionType::Button, FInputChord(EKeys::Escape));
UI_COMMAND(ToggleContextRestriction, "Toggle Context Restriction", "Toggles edit restrictions like selection to current level edit", EUserInterfaceActionType::ToggleButton, FInputChord(EKeys::L, EModifierKey::Shift));
}
#undef LOCTEXT_NAMESPACE