Hi everyone,
I just switched from UE 5.0 to 5.1 for a VR project that had a working 3D UI with text boxes and a virtual keyboard based on https://docs.unrealengine.com/5.1/en-US/creating-virtual-keyboard-interactions-in-unreal-engine/.
After the switch I had problems with the game losing focus after interacting with the UI so that only the first interaction went through. Switching to the new EnhancedInput system the focus problem seems to be fixed, but SendKeyChar() both using Blueprint and C++ does not work and always returns false.
This can quickly be reproduced in the Virtual Reality template:
- Add a TextBox to WidgetMenu. You can now select the text box using the controller pointer and enter characters using the PC keyboard.
- Add a new InputAction and assign a controller button to it in IMC_Menu.
- In the Menu blueprint call SendKeyChar() when the input action is triggered.
This always returns false and the character is not sent to the text box.
Am I missing something or is this a bug?