Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Support for non-latin characters does not work #48

Open
lincoln310 opened this issue Apr 3, 2024 · 6 comments
Open

[BUG] - Support for non-latin characters does not work #48

lincoln310 opened this issue Apr 3, 2024 · 6 comments
Labels
bug Something isn't working never-stale

Comments

@lincoln310
Copy link

UE Version:
E.g. UE 5.2

Frontend Version:
E.g. UE5.4-0.0.4

Problem component
FrontEnd

E.g. Signalling Server, Frontend, Pixel Streaming C++ plugin

Description
I created a EditableText in UE5.2. When I input Chinese from pixelstreaming, it dose not fire a CompositionStart event.
I found a fix at here: EpicGames/PixelStreamingInfrastructure#452.
But it still dose not work.

Steps to Reproduce:

  1. create a EditableText in UE
  2. open pixelstreaming
  3. try to input some Chinese from frontEnd to the EditableText
  4. ascii code is send directly to ue, not Chinese

Expected behavior

  1. Chinese input can fire CompositionStart | Update | End.

Screenshots
If applicable, add screenshots to help explain your problem.
I added this code to player.html, then it act like this:

work

1 i select EditableText in UE
2 active the input.example bellow
3 then it works fine. The Chinese shown on both EditableText and input.example bellow

image

not work

4 when i click on the other place except input.example
5 then the actived EditableText does not fire Composition Event any more.

 <div class="control">
        <label for="example">
          First select textbox, then to open IME:
          <ul>
            <li>on macOS type <kbd>option</kbd> + <kbd>`</kbd></li>
            <li>on Windows type <kbd>windows</kbd> + <kbd>.</kbd></li>
          </ul>
        </label>
        <input type="text" id="example" name="example" />
      </div>
      
      <div class="event-log">
        <label for="eventLog">Event log:</label>
        <textarea
          readonly
          class="event-log-contents"
          rows="8"
          cols="25"
          id="eventLog"></textarea>
        <button class="clear-log">Clear</button>
      </div>

      <script>
        const inputElement = document.querySelector('input[type="text"]');
        const log = document.querySelector(".event-log-contents");
        const clearLog = document.querySelector(".clear-log");

        clearLog.addEventListener("click", () => {
        log.textContent = "";
        });

        function handleEvent(event) {
        log.textContent += `${event.type}: ${event.data}\n`;
        }

        document.addEventListener("compositionstart", handleEvent);
        document.addEventListener("compositionupdate", handleEvent);
        document.addEventListener("compositionend", handleEvent);
      </script>

Platform (please complete the following information):

  • OS: macOS
  • Browser + version: chrome 123.0.6312.59
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@lincoln310 lincoln310 added the bug Something isn't working label Apr 3, 2024
@lincoln310
Copy link
Author

Any more information?

@lukehb
Copy link
Contributor

lukehb commented Apr 9, 2024

CC @DenisTensorWorks We will need an internal ticket for this one.
CC @Belchy06 @mcottontensor

Copy link
Contributor

Issues go stale after 30 days of inactivity. Please comment or re-open the issue if you are still interested in getting this issue fixed.

@github-actions github-actions bot added the stale label May 10, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2024
@lukehb
Copy link
Contributor

lukehb commented May 10, 2024

No... bad bot, we do want this to stay open.

@lukehb lukehb reopened this May 10, 2024
@Zeouterlimits
Copy link

Sounds related: #120

@lukehb
Copy link
Contributor

lukehb commented Oct 30, 2024

Sounds related: #120

Agreed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working never-stale
Projects
None yet
Development

No branches or pull requests

4 participants