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"

Is it possible to focus an Editable Text Box and have PlayerController keyboard controls work at the same time?

I'd like to be able to input text into a UMG Widget at the same time as having a BP Class take Keyboard inputs. Regardless of the solution: I need both to recieve inputs in the form of either text or direct key inputs.

I've got two solutions to my issue so far: 1: Take Keyboard inputs through a BP Class, do what I need to do with them (animating virtual keyboard keystrokes) and pass them onto the Widget to type. While the first part of this solution worked just fine, text inputs were sometimes laggy and inconsistent (due to being triggered based on a Timeline's Float output).

2: Focus the Widget and type directly into the text box. Convert the Text to a String (Using the OnTextChanged Event) and Right Chop most of the text out; leaving only the most recently entered character. Send the last character to the BP Class and SwitchOnString (seeing as each physical key has it's own Timeline) depending on that Key. I'd rather not continue with this solution.

What I'd really like to be able to do is have my BP Class take Keyboard inputs at the same time as the Editable Text Box is Focused; seeing as I've already got that setup, although I'm not sure on if there's a way to have the Focus not consume input.

Product Version: UE 4.18
more ▼

asked Sep 04 '18 at 08:22 PM in Blueprint Scripting

avatar image

1 1

avatar image Mr_Behemoth Oct 19 '18 at 07:00 PM

Hi, did you find a way to do this? This is exactly what I'm looking into right now. It's a bit trickier for my purposes, because I'm wanting my player controller to detect a non-printing character (e.g. tab) while a text-box is capturing keyboard input. I suspect that I'll have to do something similar to your option 1.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I think Focus consumes input by definition but I'm not 100% sure.

more ▼

answered Dec 02 '18 at 11:53 PM

avatar image

3.8k 18 20 20

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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