Currently, I’m able to prevent my editable textfield from losing focus until ETextCommit::OnEnter by keeping a boolean flag around that expresses whether or not the field needs focus. This is pretty hacky and yields this error every time focus is set:
"LogWindowsTextInputMethodSystem:Error: Deactivating a context failed while setting focus to the disabled TSF document manager"
Is there a clean way to do the following (I’m happy to superclass UserWidget
in C++ to do this)?
- Focus the keyboard on the editable text field immediately such that the user doesn’t have to click on it with their mouse cursor to begin typing
- Do not lose focus unless the commit occurs with an ETextCommit::OnEnter event
Thanks!