Files
UnrealEngineUWP/Engine/Source/Editor/ContentBrowser/Private/ContentBrowserCommands.cpp
Andrew Brown 15c505e13b Content Browser: Enter and SpaceBar keys can now be remapped.
#ttp 333671 - EDITOR: Content Browser: Customizable shortcut for opening assets and folders

#branch UE4

#add Added two new commands so that the Enter and SpaceBar functionality can be remapped.

#change Renamed EAssetTypeActivationMethod types so they don't mention which key was used, but the action that key performed.

reviewed by Thomas.Sarkanen

[CL 2059964 by Andrew Brown in Main branch]
2014-04-30 10:58:31 -04:00

15 lines
757 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "ContentBrowserPCH.h"
#include "ContentBrowserCommands.h"
#define LOCTEXT_NAMESPACE "ContentBrowser"
void FContentBrowserCommands::RegisterCommands()
{
UI_COMMAND( OpenAssetsOrFolders, "Open Assets or Folders", "Opens the selected assets or folders, depending on the selection", EUserInterfaceActionType::Button, FInputGesture(EKeys::Enter) );
UI_COMMAND( PreviewAssets, "Preview Assets", "Loads the selected assets and previews them if possible", EUserInterfaceActionType::Button, FInputGesture(EKeys::SpaceBar) );
UI_COMMAND( DirectoryUp, "Up", "Up to parent directory", EUserInterfaceActionType::Button, FInputGesture(EModifierKey::Alt, EKeys::Up) );
}
#undef LOCTEXT_NAMESPACE