x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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

Product Version: UE 4.8
Tags:
more ▼

asked Sep 10 '15 at 01:12 PM in C++ Programming

avatar image

Jos Balcaen
16 1 3 4

avatar image rotoslinger Oct 16 '15 at 10:25 PM

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?

avatar image theiviaxx May 09 '16 at 06:05 PM

did you find a solution?

avatar image rotoslinger May 16 '16 at 11:37 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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


more ▼

answered May 16 '16 at 11:32 PM

avatar image

rotoslinger
76 1 5 9

avatar image epolicaro Aug 07 '18 at 02:59 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question