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"

'Press Key' BP Node Not Emulating Enter or Backspace Keys

I have a Blueprint VR project that I just ported over to 4.15 because I plan to release it on the marketplace. The project is a VR virtual keyboard that includes a full QWERTY layout, web browser functionality as well as a standard message box that is separate from the web browser for uses like entering high scores, naming an in game character, etc. All of this is done in UMG using Widget Interaction Components (I followed this tutorial to get the whole thing started: https://docs.unrealengine.com/latest/INT/Engine/UMG/HowTo/VirtualKeyboards/index.html)

The project was originally developed in 4.14 where I had zero issues with the project after I had completed it's initial prototype. View the video I recorded to see what "zero issues" means: https://www.youtube.com/watch?v=iOMRT9dZuh4

The issue I am now having is after porting the project to 4.15 it seems that the 'Press Key' node I'm using for simulating certain buttons (Enter and Backspace specifically) does not actually send Enter/Return or Backspace keyboard key presses to the web browser widget. The node seems to work for every other type of keyboard key press other than Enter and Backspace which is very confusing. My thought is that Enter and Backspace are not being properly "virtually clicked" if that makes any sense but I doubt that's the case.

alt text

Product Version: UE 4.15
Tags:
more ▼

asked Mar 08 '17 at 04:55 AM in Bug Reports

avatar image

BananaKing932
61 3 4 11

avatar image BananaKing932 Mar 08 '17 at 05:03 AM

After doing some research I seemed to have stumbled upon a fixed issue from 4.14 that is kind of similar to my issue. I'm not sure if this is related though.

https://issues.unrealengine.com/issue/UE-38749

avatar image BananaKing932 Mar 11 '17 at 09:43 PM

I have also just confirmed that the secondary keys for Enter and Backspace (NumPad Enter and Delete) also don't work with the web browser widget.

avatar image Thomas G ♦♦ STAFF Mar 14 '17 at 03:29 PM

Hello BananaKing932,

I was not able to reproduce your issue on our end. To investigate further, I would need to see your project, which you can privately message me on the forums here:

https://forums.unrealengine.com/member.php?680446-ThomasVanZeeland

Thanks!

avatar image BananaKing932 Mar 14 '17 at 10:36 PM

Just sent you that private message. Hopefully you'll find something stupidly simple to fix it, lol.

avatar image BananaKing932 Mar 15 '17 at 11:49 PM

Unfortunately your suggestion did not fix the issue. I have changed nothing in the project since sending it to you in the private message so there is nothing new that could be causing this. Attached below is a screenshot of me using your suggested fix as well.

alt text

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

1 answer: sort voted first

Your issue is a bad reference in your newer project, specifically in your Messagebox widget, To fix it I used get all widgets of class and set it to the keyboard, then got it from the array

alt text

Hope this helps!

more ▼

answered Mar 15 '17 at 02:46 PM

avatar image

Thomas G ♦♦ STAFF
6.8k 63 4 48

avatar image BananaKing932 Mar 15 '17 at 11:48 PM

Unfortunately your suggestion did not fix the issue. I have changed nothing in the project since sending it to you in the private message so there is nothing new that could be causing this. Attached below is a screenshot of me using your suggested fix as well.

alt text

avatar image Thomas G ♦♦ STAFF Mar 16 '17 at 01:54 PM

So when I reviewed the changes I had made. You also need to change all the buttons to work off of On Pressed events instead of On Clicked. This should enable the Spacebar, Backspace, and Enter keys to work.

alt text

event_fix.png (102.3 kB)
avatar image BananaKing932 Mar 17 '17 at 06:54 AM

Sadly the buttons are still not working. I switched out the OnClicked events on both the Enter and Backspace buttons with OnPressed and the sames issues are apparent

However I would like to bring up again that the Spacebar has never had issues, just Enter and Backspace.

alt text

avatar image BananaKing932 Mar 20 '17 at 11:03 PM

Sorry to be a bother again... (I'm appreciating the help though!)

The 4.15.1 update did not fix my issue either. The only thing I can think of to help in this is send you a copy of the project that I have been using your potential fixes in to make sure I'm not missing something.

avatar image Thomas G ♦♦ STAFF Mar 27 '17 at 07:34 PM

Hello BananaKing932,

sorry for the delay in response, we have logged your issue here:

https://issues.unrealengine.com/issue/UE-43370

You can track the report's status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.

avatar image TehTpyoKing Jun 29 '17 at 03:43 PM

I am having the same issue right now in my project (in 4.16) and I find that Backspace is working in the web browser but Enter still does not.

I noticed that UE-43370 only specifically mentions the Backspace key. Is there an active issue tracking the use of the Enter key?

avatar image Lou.Rohan Jun 29 '17 at 07:31 PM

It looks like this can be fixed for CEF (web browser) with this change in WidgetInteractionComponent.cpp:

CharCode = '\n';

to

CharCode = '\r';

It looks like CEF wants a carriage return (10), rather than a linefeed (13) for "return/enter".

(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