haxeui / haxeui-openfl

The OpenFL backend of the HaxeUI framework -
http://haxeui.org
MIT License
42 stars 14 forks source link

TextField does not support IME #20

Open apptaro opened 6 years ago

apptaro commented 6 years ago

I can't input Japanese characters into textfields because they don't work with IME. Tried neko and html5 targets, and they both don't work.

Expected Behavior

Should be able to input Japanese characters using IME.

Current Behavior

IME does not work.

Possible Solution

haxeui-html5 has a mode where native input controls are used. Can the same approach be taken??

Steps to Reproduce (for bugs)

  1. Create an app that has a TextField.
  2. Build.
  3. Try to input Japanese characters into the field.

Media

Test app / minimal test case

Context

With this issue, haxeui-openfl is completely useless for Japanese/Chinese/Korean users.

Your Environment

ianharrigan commented 6 years ago

Presumably this is an issue with openfl also?

apptaro commented 6 years ago

Maybe related to this? https://github.com/openfl/openfl/issues/1098

apptaro commented 6 years ago

I have confirmed that OpenFL has the same issue. The issue above is closed without a fix.

ianharrigan commented 6 years ago

Ok, well, i guess we leave this open until thats working - as you mention, another possibility is to have a native textfield that floats over an openfl application - so this could be used to track that also

apptaro commented 6 years ago

Or for html5 target, this: https://github.com/goldfire/CanvasInput It draws input field on canvas and IME does work magically for Japanese.