Clicking on an UMG widget takes the focus for keyboard inputs
I'm using an UMG widget for my game's HUD. It has several buttons. When clicking on a button, then pressing "tab", it will select the next button/element in the widget. If I keep pressing "tab", it goes on. Which bothers me, because it means that once the HUD has been clicked somewhere, the keyboard inputs aren't received by the player controller/pawn.
I tried fixing it, two ways :
Any idea where this could be coming from? Is there a third way to prevent the UMG widget to take the focus in any way?
Thanks in advance.
To register your own behavior have a look at the following classes/methods:
i use this method in my gameinstance init
FNavigationConfig -> defines if you want to respond to navigation requests when a key is pressed
You simply have to derive from FNavigationConfig and overrule virtual
This ensures slate never responds to keyboard navigation requests.
Follow this question
Once you sign in you will be able to subscribe for any updates here