# UMG Textbox: insert Character

**URL:** <https://forums.unrealengine.com/t/umg-textbox-insert-character/376860>\
**Category:** UI\
**Tags:** cursor, unreal-engine, keyboard, question, UMG\
**Created:** [November 20, 2016, 1:07am UTC](https://forums.unrealengine.com/t/umg-textbox-insert-character/376860 "2016-11-20T01:07:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [November 20, 2016, 1:07am UTC](https://forums.unrealengine.com/t/umg-textbox-insert-character/376860/1 "2016-11-20T01:07:16Z")

</div>

Hey,

I can add a textbox to my widget, my widget to my HUD. Enabling the cursor, I can click into that box and the keyboard focus is set automatically. I´m able to type in where ever I want, everything working out of the box.

I´m working on a Virtual Reality project and need to use a textbox for inserting strings (creating save file name).  
For VR I created a widget that contains a keyboard. On press of a button a event dispatcher is called that sends the corresponding KeyStructure. I can now TextBox-\>GetText-\>ToString-\>Append, Textbox-\>SetText. Works fine as it is. But how would I go about inserting a character between others: “Hllo”-\>“Hello”? I can´t figure out how to get the position of the text cursor.

Another possibility, which would be the prefered as well, would be: faking keyboard input. Like OnButtonPress-\>SendToInputStream.

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [November 21, 2016, 2:15pm UTC](https://forums.unrealengine.com/t/umg-textbox-insert-character/376860/2 "2016-11-21T14:15:57Z")

</div>

Ok, there is a tutorial for it. But how to do it is far away from how you would do it out of the box.

[https://docs.unrealengine.com/latest/INT/Engine/UMG/HowTo/VirtualKeyboards/ActorSetup/index.html](https://docs.unrealengine.com/latest/INT/Engine/UMG/HowTo/VirtualKeyboards/ActorSetup/index.html)

Thanks for the tutorial anyway.

---

<div class="post-metadata">

**Author:** ![CoolNamesGone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/coolnamesgone/32/247999_2.png) [@CoolNamesGone](https://forums.unrealengine.com/u/CoolNamesGone)\
**Post date:** [July 27, 2022, 1:14pm UTC](https://forums.unrealengine.com/t/umg-textbox-insert-character/376860/3 "2022-07-27T13:14:23Z")

</div>

What became of this tutorial? The link gives a 404 error and I can’t figure out the search words to find it.
