[feature request] better IME support for AutoComposer
Feature Request
Summary
I don't know is there a better title for this.
So, when I'm using IME and hit 'enter', I can get the composing/typing text as-is. This means if I type English using Chinese IME, I don't have to cancel, I can just hit 'enter' and get what I typed in English.
For example, if I type "typing", in the input it will show as t y ping (notice the space) due to the Chinese word segmentation. And if I hit 'enter' it will become 'typing'.
However, using AutoComposer, hitting 'enter' will cause AutoComposer to submit whatever it currently have to the terminal (in my case, 't y ping'). Normally it should ignore this keyboard event, and the IME will update the input to typing.