x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Force virtual keyboard to open

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

Product Version: UE 4.17
Tags:
more ▼

asked Oct 02 '17 at 10:10 AM in Blueprint Scripting

avatar image

lukemols
13 3 3 5

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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).

more ▼

answered May 22 '18 at 01:20 PM

avatar image

Claus R. Blue
31 5 2

avatar image d0-games Aug 06 '18 at 03:38 PM

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.

avatar image Muzaheed Jan 23 '19 at 10:53 AM

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

avatar image Claus R. Blue Jan 23 '19 at 11:06 AM

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.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question