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. 

How do I disable the right click menu on editable text boxes?

How do I stop this "Modify Text" menu showing when the player right clicks inside an editable text box widget?

alt text

Product Version: Not Selected
Tags:
more ▼

asked Feb 07 '17 at 11:02 PM in Blueprint Scripting

avatar image

Solus Peregrine
6 2 4

avatar image Carluw Feb 08 '17 at 02:04 PM

Is so weird. does is it not the editor mode ? That kind of menu should not appears in the play mode

avatar image Solus Peregrine Feb 08 '17 at 02:17 PM

This is in "Play in standalone game" mode but it also happens in "Play in selected viewport" mode too.

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

1 answer: sort voted first

Hi Solus Peregrine ,

This is not a bug. You can disable the ContextMenu by selecting your EditableBox in the UMG designer and unchecking the AllowContextMenu variable.

Cheers,

more ▼

answered Feb 08 '17 at 08:11 PM

avatar image

project.gheist
1.6k 22 10 49

avatar image Solus Peregrine Feb 08 '17 at 09:41 PM

Hi project.gheist, I forgot to mention that this is on version 4.10, I'm not sure but I found a change log that says that option was added in 4.11. Is there no way around this for 4.10?

avatar image project.gheist Feb 08 '17 at 09:47 PM

This feature indeed got added in 4.11. A workaround/dirty hack would be to do the following at the top of the function SEditableText::SummonContextMenu in SEditableText.cpp to disable the functionality in cooked builds;

 #if !WITH_EDITOR
 return;
 #endif
avatar image Solus Peregrine Feb 08 '17 at 09:57 PM

That's perfect, cheers

(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