[UE 4.9.2 - UMG] Handled event reply is ignored when using Backspace in TextBoxes.

The title literally says it all, I encountered a bug (or maybe I’m just doing it wrong ?!) when creating my terminal emulator in UMG. I have overridden the OnPreviewKeyDown function, and I detect whether the input key is the BACKSPACE key. If so, I will just return an HANDLED Event reply, which should tell the other parts that I already handled the backspace, so it does not effect the child components / script. However, If I return the handled event reply once backspace is detected, it does nothing, the backspace function works as normally in the Multi Line Text box, whereas the Enter Key is not working (not sending further to the Multi Line Text do do a new line) when sending an Handled event reply. Heres a picture:

http://i.imgur.com/QQNAhWL.png

I think this is a bug, if not, any mod can feel free to move this into the section where it belongs.
Thanks!

Hello ,

I was unable to reproduce this issue on our end. I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed set of steps to reproduce this issue on our end?
  3. Could you provide screen shots of any other blueprints that may be involved with this issue?
  4. Could you try setting the keyboard focus to the widget that is being used?

Hmm,

  1. I did, issue is still the same.
  2. Just created a widget blueprint, added a multi line text box, overridden the OnPreviewKeyDown, spawned within the Level Blueprint, still the same.
  3. Sure:

http://i.imgur.com/BnRvRoW.png

  1. Did it, nothing happens.

Does it make a difference if you only use a single return node?

Did that setup:

http://i.imgur.com/efW5q8D.png

Works not aswell :frowning:

Could you try adding a set keyboard focus on begin play. I have provided an example below.

Example:

Done it exaclty the way you made it in the screenshot, still no difference :frowning: Heres a link for the project, so you can see the issue: https://docs.google.com/uc?id=0B_kkwi64gdF7dFBfbWlXSmVoWGs&export=download

Hello ,

I downloaded the project that you sent. Everything appears to be working as intended. Enter skips to the next line as expected and the backspace print string fires off when pressing the back space button. Is this not the functionality that you are experiencing?

Yeah sure, the print string works, but as you see Im returning an Handled event reply, and the main question of this topic was if its possible to skip this backspace, and it should according to my knowledge when using a Handled Event Reply, or am I wrong somewhere?

After looking into your issue, I was able to find that this only handles the events for other widgets within the same hierarchy. For example if you were to add a multi line text box child widget (using User Created) and you had a setup to print out “Backspace2” when pressing the back space then this print string would not fire if the parent handled this event. If you also placed a print string in the parent for the same conditions, you then only see the parents print string. I believe that this is working as intended. I hope that this information helps.

Make it a great day

AH okey, i understand. But what if I want to block the backspace so it doesnt work anymore? Is there any feature?

I have written up a feature request for the ability to disable certain button/keys and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Make it a great day

Thanks for your help!