Description

When trying to send the Enter Key to Web Browser using the Press and Release function, it does not work. This function works with any other key that you try to send.

A repro project is attached that has the steps setup.

This was reported and tested in 4.24.3 (CL-11590370). This was reproduced in 4.23.1 (CL-9631420), 4.25 Preview 1 (CL-11723679), and Main 4.26 (CL-11724764)

Steps to Reproduce
  1. Open the UE4 Editor and create a Blank project
  2. Enable the Web Browser plugin
  3. Create a new Pawn blueprint, a new Game Mode blueprint. Set the pawn as the Default player pawn in this Game Mode, and set this Game Mode as the default Game Mode for the project.
  4. Create a Widget Blueprint with Web Browser with any page that you can type in a text box or make a search as default and add it in a widget component in a new Actor Blueprint
  5. Place the new Actor Blueprint in the level.
  6. In the Pawn, add a Widget Interaction component. Set its Interaction Source as Custom.
  7. In the Pawn Event Tick make a LineTraceByChannel using the Default Scene Root's world location as Start, for the End use Default Scene Root's Forward Vector multiplied by "10000.0" added to the Default Scene Root's world location. After that, set the Widget Interaction Custom Hit Result equal to OutHit from LineTraceByChannel.
  8. Create three new action mappings. In the first new inputAction's Pressed Pin, add a Press Pointer Key (Left Mouse Button) node for the Widget Interaction, and in the Release Pin, add a Release Pointer Key (Left Mouse Button) node. This will simulate a click in the web browser widget. In the second new inputAction's Pressed Pin, add the node Send Key Char (use any character as the 'Characters' parameter). This will allow the player to type something in any text box inside the web browser widget . Finally, for the third new inputAction's Pressed Pin, add a Press and Release Key node (with Enter as the 'Key' parameter), to simulate the Enter Key in the web browser widget.
  9. Play the level, select any text box in the web browser widget and use the input to type something. Then, try to commit the text (or break a line) using the third input mapping created.

Results: The node which sends the Enter Key will return true, but nothing will happen. The text entered in a web browser's text box will NOT be committed (or will not break a line).

Expected: The text typed was committed, or the cursor is in the next line.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-90000 in the post.

8
Login to Vote

Won't Fix
ComponentTools
Affects Versions4.23.14.24.34.254.26
CreatedMar 3, 2020
ResolvedAug 31, 2021
UpdatedAug 31, 2021
View Jira Issue