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"

Cannot paste text into Text Box in HTML5 build

I can't paste text from the Windows clipboard into any UMG Text Boxes in an HTML5 build. The paste option is grayed out if I right click the Text Box in both Chrome and Firefox. Ctrl + V does nothing in Chrome and in Firefox it just types 'v' into the Text Box. Pasting works just fine in PIE and Windows64 build.

Steps to reproduce:

  1. Create a new project

  2. Add a UMG Text Box widget to the HUD

  3. Build for HTML5

  4. Try pasting any text into the Text Box in a running HTML5 build in Chrome or Firefox

Product Version: UE 4.17
Tags:
more ▼

asked Sep 13 '17 at 10:03 AM in Bug Reports

avatar image

DanimalsOnParade
68 4 10 14

avatar image juj Sep 15 '17 at 02:26 PM

This seems to be a current limitation with input handling on the HTML launch page.

It may be possible to work around this/implement it manually by implementing a paste handler (https://www.w3schools.com/jsref/event_onpaste.asp) on the page, and inject the results as individual characters. Something like that is what a proper fix will involve doing as well, since the HTML page will need to register to browser's paste events (in order to get data from the "real" operating system clipboard)

Looks like this was acknowledged already, so hopefully will get on the development queue soon.

avatar image nick.shin STAFF Dec 08 '17 at 02:01 AM

juj, is the SDL layer still tripping this up? or, should we implement a copy and paste listener like you suggested above? this seems like a really quick thing to whip up.

avatar image juj Jan 18 '18 at 04:27 PM

Sorry for the delay in replying Nick, was on a long Christmas vacation.

Check out https://github.com/kripken/emscripten/pull/6082/files#diff-8fd398136d2435d1c53386be85f6ff73R1233 with the 'paste' handler, that implements a copy-paste handler to a text area. I can't immediately recall off the top of my head how SDL will behave here, but a similar approach could be used, except that Module.writeStdin() does not (yet at least) exist for SDL, since that PR is only for multithreaded ASMFS.

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

1 answer: sort voted first

Hello,

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here

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

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.

more ▼

answered Sep 14 '17 at 03:29 PM

avatar image

Thomas G ♦♦ STAFF
7k 64 4 54

(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