# Virtual Keyboard is dismissing itself early after any word is entered, space bar, or return key press on iOS 16 / UE5 (ue5-main)

**URL:** <https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469>\
**Category:** Mobile\
**Tags:** unreal-engine, UE5-0, iOS, question\
**Created:** [October 1, 2022, 6:59pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469 "2022-10-01T18:59:31Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![rainb00ts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rainb00ts](https://forums.unrealengine.com/u/rainb00ts)\
**Post date:** [October 1, 2022, 6:59pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/1 "2022-10-01T18:59:31Z")

</div>

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.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/8/ca8ac72bef37b5a177c3df1565bd0c2d1889bf9e.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/8/ca8ac72bef37b5a177c3df1565bd0c2d1889bf9e.mp4)

---

<div class="post-metadata">

**Author:** ![slonorib](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/slonorib/32/594422_2.png) [@slonorib](https://forums.unrealengine.com/u/slonorib)\
**Post date:** [October 10, 2022, 3:05pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/2 "2022-10-10T15:05:59Z")

</div>

Have the same issue. 4.27.2, happens only on IOS devices

---

<div class="post-metadata">

**Author:** ![rainb00ts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rainb00ts](https://forums.unrealengine.com/u/rainb00ts)\
**Post date:** [October 10, 2022, 3:17pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/3 "2022-10-10T15:17:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![slonorib](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/slonorib/32/594422_2.png) [@slonorib](https://forums.unrealengine.com/u/slonorib)\
**Post date:** [October 11, 2022, 8:52am UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/4 "2022-10-11T08:52:49Z")

</div>

IPhone 11, IOS 16 🙂

---

<div class="post-metadata">

**Author:** ![rainb00ts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rainb00ts](https://forums.unrealengine.com/u/rainb00ts)\
**Post date:** [October 11, 2022, 10:06pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/5 "2022-10-11T22:06:32Z")

</div>

A change from IOS 16 might be the culprit then, and if so, might need to wait for an official UE release that supports IOS 16…

I just submitted a bug report for this though, hopefully it can be addressed with a hotfix. thanks for chiming in here.

---

<div class="post-metadata">

**Author:** ![polymatheddy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@polymatheddy](https://forums.unrealengine.com/u/polymatheddy)\
**Post date:** [July 12, 2024, 9:43pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/6 "2024-07-12T21:43:23Z")

</div>

Having this problem as well, now in 2024 😔

I am seeing this using UE5.3.2 and deploying to an Iphone 13 Mini that has iOS16.1.2 installed

Wonder if there’s any fix that can be done? it appears to be some sort of input signaling bug

---

<div class="post-metadata">

**Author:** ![blitzingeagle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blitzingeagle](https://forums.unrealengine.com/u/blitzingeagle)\
**Post date:** [September 18, 2024, 1:34am UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/7 "2024-09-18T01:34:58Z")

</div>

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](https://github.com/EpicGames/UnrealEngine/pull/12347). 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!

---

<div class="post-metadata">

**Author:** ![Zaratusa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zaratusa](https://forums.unrealengine.com/u/Zaratusa)\
**Post date:** [September 25, 2024, 12:34pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/8 "2024-09-25T12:34:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Zaratusa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zaratusa](https://forums.unrealengine.com/u/Zaratusa)\
**Post date:** [September 25, 2024, 1:58pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/9 "2024-09-25T13:58:08Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![KonPetTsu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KonPetTsu](https://forums.unrealengine.com/u/KonPetTsu)\
**Post date:** [September 26, 2024, 12:24pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/10 "2024-09-26T12:24:22Z")

</div>

Hi! The link to the solution returns 404. Please share the solution. Thank you.

---

<div class="post-metadata">

**Author:** ![Zaratusa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zaratusa](https://forums.unrealengine.com/u/Zaratusa)\
**Post date:** [September 26, 2024, 3:28pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/11 "2024-09-26T15:28:43Z")

</div>

You have to get access to the Unreal Engine Github repository

---

<div class="post-metadata">

**Author:** ![KonPetTsu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KonPetTsu](https://forums.unrealengine.com/u/KonPetTsu)\
**Post date:** [September 26, 2024, 4:12pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/12 "2024-09-26T16:12:08Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Zaratusa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zaratusa](https://forums.unrealengine.com/u/Zaratusa)\
**Post date:** [September 26, 2024, 5:35pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/13 "2024-09-26T17:35:16Z")

</div>

You have to build the engine from source yourself to use the changes. Best way to start are the source build guides: [Downloading Unreal Engine Source Code | Unreal Engine 5.4 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/downloading-unreal-engine-source-code)

---

<div class="post-metadata">

**Author:** ![polymatheddy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@polymatheddy](https://forums.unrealengine.com/u/polymatheddy)\
**Post date:** [October 6, 2024, 7:11am UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/14 "2024-10-06T07:11:11Z")

</div>

Excited to hear of the fix! Has the merge request been filed? I will likely just wait for it to be integrated, thank you so much for doing it!

---

<div class="post-metadata">

**Author:** ![\_aking](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_aking/32/924182_2.png) [@\_aking](https://forums.unrealengine.com/u/_aking)\
**Post date:** [October 23, 2024, 3:21pm UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/15 "2024-10-23T15:21:38Z")

</div>

A fix for this was committed 2 weeks ago based on a PR (with a few modifications). You can see the fix here: [https://github.com/EpicGames/UnrealEngine/commit/ae972b58afb6400739170d2a7575deb9d5d8529a](https://github.com/EpicGames/UnrealEngine/commit/ae972b58afb6400739170d2a7575deb9d5d8529a)  
and will be in the UE5.5 release. Cheers,  
Adam

---

<div class="post-metadata">

**Author:** ![polymatheddy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@polymatheddy](https://forums.unrealengine.com/u/polymatheddy)\
**Post date:** [November 28, 2024, 12:40am UTC](https://forums.unrealengine.com/t/virtual-keyboard-is-dismissing-itself-early-after-any-word-is-entered-space-bar-or-return-key-press-on-ios-16-ue5-ue5-main/660469/16 "2024-11-28T00:40:27Z")

</div>

Amazing! Thank you so much, I will check it out soon !
