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"

How to remove keyboard focus from a widget?

There is an option to set focus on a widget but how do i remove the focus from it and set it back to the default/viewport without clicking on it with a mouse? I want to toggle between a chatbox once i press enter and remove the focus once i send the message. Is this possible?

Product Version: UE 4.18
Tags:
more ▼

asked Mar 30 '18 at 05:39 PM in Blueprint Scripting

avatar image

ukiW
33 1 3 8

avatar image Muzaheed Jan 24 '19 at 04:15 PM

did u find any solution?

avatar image ukiW Jan 25 '19 at 03:06 AM

Set Focus to Game Viewport node worked for me.

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

1 answer: sort voted first

Yes I think there is a blueprint node called Focus to Viewport or something like that:

https://api.unrealengine.com/INT/BlueprintAPI/Focus/SetFocustoGameViewport/index.html

more ▼

answered Jan 24 '19 at 04:38 PM

avatar image

mightyenigma
3.7k 17 18 14

avatar image ukiW Jan 25 '19 at 03:07 AM

Thanks for the reply, found it some time ago and it works like a charm.

avatar image mightyenigma Jan 26 '19 at 01:17 AM

Oh wow that was last year huh? Anyway I am glad it worked. Could you do me a favor and mark my answer as Accepted?

avatar image ukiW Jan 26 '19 at 04:15 PM

Yeah, sure!

avatar image mightyenigma Jan 29 '19 at 06:06 PM

Thanks :)

(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