# Editor plugin - Keyboard binding not working

**URL:** <https://forums.unrealengine.com/t/editor-plugin-keyboard-binding-not-working/331699>\
**Category:** Plugins\
**Tags:** command, unreal-engine, shortcuts, editor, Plugins, question\
**Created:** [September 10, 2015, 1:12pm UTC](https://forums.unrealengine.com/t/editor-plugin-keyboard-binding-not-working/331699 "2015-09-10T13:12:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b8a08c76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b8a08c76](https://forums.unrealengine.com/u/anonymous_user_b8a08c76)\
**Post date:** [September 10, 2015, 1:12pm UTC](https://forums.unrealengine.com/t/editor-plugin-keyboard-binding-not-working/331699/1 "2015-09-10T13:12:39Z")

</div>

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());

---

<div class="post-metadata">

**Author:** ![rotoslinger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rotoslinger](https://forums.unrealengine.com/u/rotoslinger)\
**Post date:** [October 16, 2015, 10:25pm UTC](https://forums.unrealengine.com/t/editor-plugin-keyboard-binding-not-working/331699/2 "2015-10-16T22:25:08Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7c861eb11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7c861eb11](https://forums.unrealengine.com/u/anonymous_user_7c861eb11)\
**Post date:** [May 9, 2016, 6:05pm UTC](https://forums.unrealengine.com/t/editor-plugin-keyboard-binding-not-working/331699/3 "2016-05-09T18:05:11Z")

</div>

did you find a solution?

---

<div class="post-metadata">

**Author:** ![rotoslinger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rotoslinger](https://forums.unrealengine.com/u/rotoslinger)\
**Post date:** [May 16, 2016, 11:32pm UTC](https://forums.unrealengine.com/t/editor-plugin-keyboard-binding-not-working/331699/4 "2016-05-16T23:32:25Z")

</div>

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());
```

---

<div class="post-metadata">

**Author:** ![rotoslinger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rotoslinger](https://forums.unrealengine.com/u/rotoslinger)\
**Post date:** [May 16, 2016, 11:37pm UTC](https://forums.unrealengine.com/t/editor-plugin-keyboard-binding-not-working/331699/5 "2016-05-16T23:37:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_700a794c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_700a794c](https://forums.unrealengine.com/u/anonymous_user_700a794c)\
**Post date:** [August 7, 2018, 2:59pm UTC](https://forums.unrealengine.com/t/editor-plugin-keyboard-binding-not-working/331699/6 "2018-08-07T14:59:37Z")

</div>

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.
