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. 

User created widget cannot detect it has focus when using up and down arrow keys

Hi guys,

I have a vertical box which comprises of a user created widget called “Menu Option”. “Menu Option” consists of a button and text.

alt text This widget is placed within another widget, my menu. When the menu is constructed, I set the focus to one of my “Menu Option” widgets.

alt text The menu looks something like this:

alt text As you can see, I placed a text to display the name of the object which currently has keyboard focus. The “Menu Option” which I set as ‘In Widget to Focus’ when setting Input mode UI only (as seen in previous picture) recognises it has current focus. When I use the arrow keys however, to navigate between the options, the currently selected widget fails to detect it has focus even though there is a dotted line around it. The text remains as MenuOption instead of MenuOption_0, MenuOption_1 etc.

This is what I’m using to check whether the widget has focus or not:

alt text

I made sure that my user created widget has ‘Is Focusable’ set to true.

alt text

------------------------ What I have tried: --------------------------

When I set up a vertical box comprised of normal buttons (as seen in the menu picture), they are able to detect focus fine! The outputted text changes to the name of the button that currently has focus.

I want to use a list of user created widgets rather than normal buttons because it stores animations which I want to apply to all instances of this widget.

Product Version: UE 4.19
Tags:
menu-option.jpg (310.9 kB)
set-menu-option.jpg (152.0 kB)
menu.jpg (114.7 kB)
is-focusable.jpg (130.4 kB)
more ▼

asked Jun 08 '18 at 11:46 PM in Using UE4

avatar image

DragonSlayer981
1 1 2

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

0 answers: sort voted first
Be the first one to answer this question
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