vimflowy icon indicating copy to clipboard operation
vimflowy copied to clipboard

Input non-English punctuation failed

Open HineBlack opened this issue 6 years ago • 4 comments

Hi! Thank all the contributors for the great project, it's awesome.

I'm using system default input method in win10 and found I could input Chinese characters normally but got nothing when I trying to input any punctuation in Chinese input mode, I hit keys like "," or "." and nothing happened.

It means I have to switch to English mode, enter English punctuation, and switch back to Chinese mode to continue, and I just can't input any Chinese punctuation...

I tried Japanese input method, it failed as well.

It's ok to copy & paste Chinese punctuation from outside.

Any suggestions? Thanks.

HineBlack avatar Aug 31 '18 13:08 HineBlack

Thanks for the report!

@yuanotes do you know anything about this?

WuTheFWasThat avatar Aug 31 '18 16:08 WuTheFWasThat

@WuTheFWasThat Not tested on win10.

AFAIK, on Mac(Chrome and Firefox) compositionend events convert Chinese punctuation marks to English ones. That's not perfect but it's a simple solution to input CJK characters.

yuanotes avatar Sep 01 '18 13:09 yuanotes

@yuanotes Thanks for the info~ I did some search about composition events and found this, but still have no idea what I should do next to fix this situation... Is Userscript a right direction for me to keep trying?

HineBlack avatar Sep 03 '18 12:09 HineBlack

Pull requests are welcome! :)

Hine [email protected]于2018年9月3日 周一20:08写道:

@yuanotes https://github.com/yuanotes Thanks for the info~ I did some search about composition events and found this https://github.com/eyesofkids/react-compositionevent#user-content-what-is-composition-events-problem, but still have no idea what I should do next to fix this situation... Is Userscript a right direction for me to keep trying?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WuTheFWasThat/vimflowy/issues/294#issuecomment-418096300, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKp2XewUK84_-1fR6y8Pum2n08OtkV9ks5uXRu6gaJpZM4WVQcE .

yuanotes avatar Sep 04 '18 03:09 yuanotes