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 Focus is Lost When Clicking on "Visible" Widgets

Focus is lost when clicking on widgets, even those marked as Visible. Buttons seem to be the only exception.

UI mode is set to Game and UI.

Product Version: UE 4.10 Preview
Tags:
more ▼

asked Nov 11 '15 at 07:41 AM in Bug Reports

avatar image

SeanOConnor
41 2 3 7

avatar image Damir Porobic Nov 11 '15 at 08:27 AM

Hi SeanO'Connor,

what do you mean with "focus lost"? You mean the widget gets the focus when you click on it? Or you don't want a click to go through the widget to the game? In the second case, you could override the mouse click function and set the return value to handled.

Can you explain it a bit more?

Regards, Damir

avatar image Rudy Q ♦♦ STAFF Nov 11 '15 at 02:10 PM

Hello SeanO'Connor,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?

  2. If so, could you provide a detailed set of steps to reproduce this issue on our end?

  3. Could you provide screen shots of any blueprints that may be involved?

  4. Could you (as Priximan suggested) elaborate further on what you mean by the focus is lost and about how this is inverse to the expected result?

avatar image Rudy Q ♦♦ STAFF Nov 16 '15 at 05:05 PM

Hello SeanO'Connor,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.

avatar image gustavorios2 May 19 '16 at 01:27 PM

I'm experiencing this too On the image that I have some buttons on the left with keyboard focus on the "return to game" button. If I click anywhere on the screen the buttons lose the focus

alt text

342526766.jpg (206.2 kB)
avatar image Rudy Q ♦♦ STAFF May 19 '16 at 02:50 PM

Hello gustavorios2,

Could you go through and answer the questions from my previous post that were directed at SeanO'Connor?

avatar image gustavorios2 May 19 '16 at 05:16 PM

hi! thanks for the quick response.

I made a empty project explaining the widget strange behavior. heres the link link text

Maybe I'm just missing something.

THanks!

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

3 answers: sort voted first

I give my solution, I hope it will help you (and the other people who come to this forum and were looking for the solution like me, 30 minutes ago, before I found this little trick! ^^)

1- record the focused button in the Event Tick alt text

2- Create a giant, invisible button, without pressed padding, which contains the entire menu. alt text

3- When clicking on this giant invisible button (OnPress, not OnClick), set the focus to the current focused button alt text

It works perfectly for me! ^^ Final result: https://streamable.com/kwm4c

Tip: you can remove the default dotted frame around the button by disabling this feature in project settings: alt text

more ▼

answered Jul 01 '19 at 02:09 PM

avatar image

ConcreteGames
71 4 11 15

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

Hello gustavorios2,

After taking a quick look at your project, it appears that you will need to manage your inputs. I made the change below (set input mode ui only) and this appears to have resolved the issues mentioned in the project. I hope that this information helps.

alt text

Make it a great day

more ▼

answered May 20 '16 at 02:02 PM

avatar image

Rudy Q ♦♦ STAFF
47.2k 545 132 525

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

bIsFocusable = true; ?

more ▼

answered Dec 28 '17 at 11:10 AM

avatar image

Repin Design
1 1 1

(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