# Force virtual keyboard to open

**URL:** <https://forums.unrealengine.com/t/force-virtual-keyboard-to-open/405964>\
**Category:** UI\
**Tags:** unreal-engine, PS4, Blueprint, question, UMG\
**Created:** [October 2, 2017, 10:10am UTC](https://forums.unrealengine.com/t/force-virtual-keyboard-to-open/405964 "2017-10-02T10:10:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukemols](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lukemols](https://forums.unrealengine.com/u/lukemols)\
**Post date:** [October 2, 2017, 10:10am UTC](https://forums.unrealengine.com/t/force-virtual-keyboard-to-open/405964/1 "2017-10-02T10:10:08Z")

</div>

Hi,

I have an editable text box in my UMG and I want to force the opening of the virtual keyboard when the game is on PS4 or X1 and the user focuses the text.

At this moment, when it happens, the textbox is enabled, but I have to press X (on PS4) to open the keyboard and write. On PC, I can write from the moment when it is enabled.

There is a way to do that?

Thank you for your reply,

Luca

---

<div class="post-metadata">

**Author:** ![ClausR.Blue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClausR.Blue](https://forums.unrealengine.com/u/ClausR.Blue)\
**Post date:** [May 22, 2018, 1:20pm UTC](https://forums.unrealengine.com/t/force-virtual-keyboard-to-open/405964/2 "2018-05-22T13:20:37Z")

</div>

This question is old, but perhaps the solution I found helps somebody else.

VirtualKeyboardTrigger in SEditableText is never set, so it defaults to OnFocusByPointer. In FSlateEditableTextLayout::HandleFocusReceived VirtualKeyboardTrigger is checked together with the input method.  
I did the lazy solution and just added .VirtualKeyboardTrigger( EVirtualKeyboardTrigger::OnAllFocusEvents) in UEditableText::RebuildWidget(). Now the virtualkeyboards opens when the textbos receives focus.  
The better solution would be to expose VirtualKeyboardTrigger to blueprint (like VirtualKeyboardType).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9892a490](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9892a490](https://forums.unrealengine.com/u/anonymous_user_9892a490)\
**Post date:** [August 6, 2018, 3:38pm UTC](https://forums.unrealengine.com/t/force-virtual-keyboard-to-open/405964/3 "2018-08-06T15:38:07Z")

</div>

Thankyou for this information. It just helped me out no end, probably saved at least a day of searching for forums and browsing through code, trying to figure out how to get the virtual keyboard to appear on Xbox One.

---

<div class="post-metadata">

**Author:** ![Muzaheed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/muzaheed/32/778940_2.png) [@Muzaheed](https://forums.unrealengine.com/u/Muzaheed)\
**Post date:** [January 23, 2019, 10:53am UTC](https://forums.unrealengine.com/t/force-virtual-keyboard-to-open/405964/4 "2019-01-23T10:53:16Z")

</div>

hi.  
can u post the solution that u found to force show the keyboard

---

<div class="post-metadata">

**Author:** ![ClausR.Blue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClausR.Blue](https://forums.unrealengine.com/u/ClausR.Blue)\
**Post date:** [January 23, 2019, 11:06am UTC](https://forums.unrealengine.com/t/force-virtual-keyboard-to-open/405964/5 "2019-01-23T11:06:00Z")

</div>

As I wrote above. Add `.VirtualKeyboardTrigger(EVirtualKeyboardTrigger::OnAllFocusEvents)`  
in UEditableTextBox::RebuildWidget() (EditableTextBox.cpp) and probably also in UEditableText::RebuildWidget() (EditableText.cpp) to force the virtual keyboard.

---

<div class="post-metadata">

**Author:** ![mmrnmhrm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mmrnmhrm/32/632147_2.png) [@mmrnmhrm](https://forums.unrealengine.com/u/mmrnmhrm)\
**Post date:** [July 21, 2023, 3:31pm UTC](https://forums.unrealengine.com/t/force-virtual-keyboard-to-open/405964/6 "2023-07-21T15:31:49Z")

</div>

In case anyone still wonders, this feature is accesible in editor now

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/a/34a91cb7ebb509d4b8d16a7650cfbf00baf5d286.png)
