You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#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]
15 lines
757 B
C++
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 |