Adobe-CEP / CEP-Resources

Tools and documentation for building Creative Cloud app extensions with CEP
https://www.adobe.io/apis/creativecloud/cep.html
1.61k stars 827 forks source link

CEP 10, IME doesn't work in modal/modeless dialogs on Windows. #349

Open sir-editor opened 3 years ago

sir-editor commented 3 years ago

IME - input method editor, e.g. Japanese IME.

Seems that it doesn’t work in CEP modal/modeless dialogs on Windows.

I tested all CEP HTML Test extensions, Premiere Pro 14.8, CEP 10, Windows 10:

I’ve tested in Premiere 13.5, CEP 9.4 and everything works. On macOS everything works in both CEP versions.

sujaisivanandan commented 3 years ago

This has been fixed in CEP 11.1. Can you please check this on the pre-release builds available.

refer: https://github.com/Adobe-CEP/CEP-Resources/releases/tag/CEP11

genequ commented 3 years ago

Hi @sujaisivanandan, is there a known workaround in CEP10? Thanks!

sir-editor commented 3 years ago

This has been fixed in CEP 11.1. Can you please check this on the pre-release builds available.

@sujaisivanandan I've just tested it. It kinda works, but weird. Here is a comparison of IME from CEP 9.4 and CEP 11.1.

In CEP 9.4 IME is "inlined" in text input and it also generates "compositionstart" and "compositionend" events, which is crucial in my case: when user presses Enter/Return a search bar executes selected action, so when in IME mode I need to turn that off and it was possible with those events.

Screenshot 2021-06-08 at 17 03 31

In CEP 11.1 IME is separated from text input (see, symbols are in a small box below text input) and it doesn't generate "compositionstart" and "compositionend" events. And now those events are not generated for panels as well (which just breaks IME for me completely).

Screenshot 2021-06-08 at 17 03 44

Is it possible to get same IME as in CEP9.4? Or at least get "compositionstart", "compositionend" events when IME is activated?

sir-editor commented 3 years ago

is there a known workaround in CEP10? Thanks!

@genequ I shipped extension with two types of windows: modeless and panel. In settings user is allowed to switch between one of them.

genequ commented 2 years ago

I noticed similar problems in our own extension and in Illustrator's Libraries plugin (AI 25.4.1 and AI 26 RC1 build) when using Chinese Pinyin IME: 1) the IME toolbar does not follow the cursor, it appears at the top left corner of the screen (0, 0), which should appear right behind the cursor.

Screen Shot 2021-09-22 at 20 53 30

2) after switch to another program (e.g, File Explorer) and switch back to the host application (Illustrator), Chinese input is not accepted.