Handling Focus and Input in UE5
Hello everyone,
I'm using a custom drag behavior implemented in C++ and when I drag an item and then press the Tab key, the focus doesn't behave as expected. The UI retains focus, and I need to click outside the widget and press Tab again for the game to receive the action, and the keyboard input flushs
I've also tried to set all the xaml elements focusable variable to be false.
Any help or pointers would be greatly appreciated!
Thank you.
I'm using a custom drag behavior implemented in C++ and when I drag an item and then press the Tab key, the focus doesn't behave as expected. The UI retains focus, and I need to click outside the widget and press Tab again for the game to receive the action, and the keyboard input flushs
I've also tried to set all the xaml elements focusable variable to be false.
Any help or pointers would be greatly appreciated!
Thank you.
Re: Handling Focus and Input in UE5
Hi,
What's the behavior you're expecting? If I'm getting it right, you want the input to be handled by the player input after the drag and drop, and not by the UI. Am I right? If so, which input mode are you setting on the PlayerController?
Thanks
What's the behavior you're expecting? If I'm getting it right, you want the input to be handled by the player input after the drag and drop, and not by the UI. Am I right? If so, which input mode are you setting on the PlayerController?
Thanks
Re: Handling Focus and Input in UE5
Hi,Hi,
What's the behavior you're expecting? If I'm getting it right, you want the input to be handled by the player input after the drag and drop, and not by the UI. Am I right? If so, which input mode are you setting on the PlayerController?
Thanks
Yes exactly that's what i want, I'm settings the input mode to Game and UI when the widget is visible
I'm also having another really weird issue, When i press right click on a draggable item its detected as left click, and after pressing left click, the drag and drop behaviour acts really weird
Re: Handling Focus and Input in UE5
I'm still waiting for an answer and have been stuck on this problem for over a week :( .
If the source code were available I would have solved it a long time ago.
If the source code were available I would have solved it a long time ago.
Re: Handling Focus and Input in UE5
I'm sorry, I'm still looking into it. I'll do my best to figure it out before the end of the day.
Re: Handling Focus and Input in UE5
Hi again.
Could you please create a ticket on our bugtracking portal? I have a patch for you to try. It's all plugin code, so you can apply it on your side until we publish a new version.
Thanks!
Could you please create a ticket on our bugtracking portal? I have a patch for you to try. It's all plugin code, so you can apply it on your side until we publish a new version.
Thanks!
Re: Handling Focus and Input in UE5
Just a few comments regarding this thread.
For better response times, please don't reuse a thread with another problem, just create a new thread for every unrelated problem.I'm still waiting for an answer and have been stuck on this problem for over a week :( .
The source code of the Unreal plugin is available.If the source code were available I would have solved it a long time ago.
Re: Handling Focus and Input in UE5
Hi,Hi again.
Could you please create a ticket on our bugtracking portal? I have a patch for you to try. It's all plugin code, so you can apply it on your side until we publish a new version.
Thanks!
Sure, I will create a ticket, thank you so much :)
Re: Handling Focus and Input in UE5
I've replied on the ticket.
Who is online
Users browsing this forum: Google [Bot] and 7 guests