Babylon.js icon indicating copy to clipboard operation
Babylon.js copied to clipboard

Enable IME in inputtext

Open shota-inoue opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe.

I would like to use inputtext, but my expected native language is Japanese. Japanese is already supported by Babylon.js, IME cannot be used in inputtext because IME is not working.

Describe the solution you'd like

In the discussion, RaananA was able to input Japanese in a pseudo manner by using the native input field as one of the solutions. However, I want to input Japanese using IME with inputtext without displaying the native input field.

Discussion

https://forum.babylonjs.com/t/i-want-to-input-japanese-with-input-text/15796

shota-inoue avatar Nov 18 '20 23:11 shota-inoue

For future reference - IME (Input method editors) - https://docs.microsoft.com/en-us/windows/uwp/design/input/input-method-editors are a standard way to input many different languages while still using an english-layout keyboard. The input to the text field is still english (and is being converted while typing). Language like Japanese and Chinese are using it, and they are supported in a native input field.

RaananW avatar Nov 19 '20 10:11 RaananW

Perhaps an HTML element input cover virtual input, is a better general solution.

Reference Layaair engine https://layaair2.ldc2.layabox.com/demo2/?language=zh&category=2d&group=Text&name=InputMultiline

n9512378 avatar Sep 29 '22 09:09 n9512378

we cannot use solely an HTML element, as Babylon native doesn't support HTML elements. We will need to consider a more abstract solution, though it seems like we will eventually be forced to use an HTML element, at least for the web version

RaananW avatar Sep 29 '22 12:09 RaananW

This issue has been automatically staled because it has been inactive for more than 14 days. Please update to "unstale".

github-actions[bot] avatar Mar 28 '24 00:03 github-actions[bot]

No traction. Might be re-open if IME is supported in the Canvas API

thomlucc avatar Jun 11 '24 17:06 thomlucc