Building for iOS 16 from UE5, built from source on the ue5-main branch
Whenever I have a text input field in a widget, and the user goes to type more than one word at a time, the keyboard dismisses itself early whenever the spacebar or return keys are pressed. It happens also if you select a word from the predicitive text menu above the keyboard.
It’s like the keyboard is trying to reset between each word that is committed.
This also happens on a brand new widget with an editable text field with no actions bound to the text changing.
This is using the “integrated keyboard” enabled in the iOS project settings.
Can you confirm which version of iOS and which device you are seeing this on in 4.27.2? I imagine we can get a fix sooner if it is happening on a stable release.
Hello everyone, Morris from Parallel Studios here! While working on our new mobile game I’ve created a working fix to this 2 year old iOS keyboard dismissal issue, hoping to share it with the rest of the community!
I submitted a bug fix PR to the Unreal Engine source code here. With this fix, the iOS keyboard does not dismiss every time a word is entered, tested on iPhone 15, iOS 17.
Hoping this fix gets incorporated soon. In the meantime feel free to check out the code!
Hi, thanks a lot for sharing the fix. However there is still one issue remaining. Setting Clear Keyboard Focus on Commit in the input field to false results in closing the keyboard when using the submit button on the virtual keyboard, for some reason it works using an Unreal button to submit it.
Turns out the [self resignFirstResponder]; in the insertText method IOSView.cpp has to be removed as well, because the focus change will dismiss the keyboard correctly depending on the input field settings. @blitzingeagle could you add that to your merge request?
Thank you! Please advise, How can this solution be applied? Will it be necessary to rebuild the entire Unreal or is there an alternative? I am a newbie in this matter, if I need to rebuild the entire engine, please suggest a suitable manual for beginners)) How can I do this on a Mac?