How to set a widget visible when a textbox is selected?

Hi,

I am relatively new to working with UE4 and have come across some trouble while coding in Blueprint. I want to have a widget be shown when the user has clicked/focused on the TextBox. I am currently trying to build an app for VR that allows input from a keyboard whenever the TextBox is selected. I just can seem to find a way to identify when the TextBox is selected. Any help would be very much appreciated.

Hi Again Scrypter,

I have not VR controls for now to do some testing on this, but the following tutorial should help you with your problem.

Please, let me to know if it works. The next week I will receive my HTC Vive headset to start developing in VR mode :D

Hi mngpssn,

Thanks for the video! I have watched it and implemented it into my project. The only problem now is that I cannot remove the focus away from the TextBox where I have selected when I pressed the enter button. Any ideas/videos u have stumbled upon recently?

Cheers!!

After trying some things I just could do what is in the image, but just works if your focus is not in the text box :frowning:

After doing some research I just found this answer: How to detect if any key has been pressed down in UMG? - UI - Epic Developer Community Forums

I did my best :stuck_out_tongue:

Hahaha thanks for the research!

I have been playing around a bit and it just hit me, I want it to lose focus when Enter button is pressed. Therefore, the solution was just to set the Enter button to be focusable and voila, the focus from the textbox is gone xD