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"

[UMG] Set user focus doesn't work

Hello everyone, I'm trying to set the focus on a widget to catch input events (through the override of OnKeyDown) unfortunately setting the focus doesn't work (and consequently catching input).

That's how replicate the bug:

alt text

It will not print anything.

Product Version: UE 4.11
Tags:
more ▼

asked Jul 09 '16 at 08:30 PM in Bug Reports

avatar image

Maggese
55 4 6 9

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

1 answer: sort voted first

Hello Maggese,

If you target a widget that is focusable and has this option set to true(a button for example), this setup should return true. I hope that this information helps.

Make it a great day

more ▼

answered Jul 11 '16 at 04:52 PM

avatar image

Rudy Q ♦♦ STAFF
47.4k 545 132 525

avatar image Maggese Jul 11 '16 at 07:46 PM

Thank you for your reply. That's exactly the problem: it doesn't return true. Never. The widget I'm using has only text though. Is this the cause?

avatar image Rudy Q ♦♦ STAFF Jul 11 '16 at 08:46 PM

If you take a look at the details for the button widget you will notice that it has an Is Focusable option whereas the text widget does not. If you create a new widget that contains only the text and you then bring that new widget into the widget that you are currently using via the user created section. You will then be able to set Is Focusable. This may be a viable workaround depending on your needs.

(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