Editor plugin - Keyboard binding not working

I’ve created a toolbar button and menu item from the example project menu that works. The command shows up in the Keyboard shortcuts window. However, when pressing the shortcut it doesn’t work.
The command is registered via
UI_COMMAND(myAction, “My Action”, “Description”, EUserInterfaceActionType::Button, FInputGesture());

I am having the same problem. I am using UE 4.9

I created a New Plugin and chose the Toolbar Button option.

The button works fine, I can even set the keyboard shortcut to the command, but nothing happens when I press the shortcut binding. When I hover over the button it will read out the shortcut binding, but it never works.

Is this normal for the Toolbar Button plugin template? I would have expected it to work by default. Maybe there is an extra step for having the keyboard shortcut fire the command?

did you find a solution?

You need to append your commands to the global level editor actions to get them to work as shortcuts in the editor:

LevelEditorModule.GetGlobalLevelEditorActions()->Append(PluginCommands.ToSharedRef());

Yeah, Sorry for the delay, I posted the answer below, let me know if that helps

This answer is very old when I’m finding it, but many thanks for eventually finding this and posting it on the internet. I knew that there was one more step that I had to be missing, but I just could not find it in the Unreal source or anywhere else.