WuTheFWasThat / vimflowy

An open source productivity tool drawing inspiration from workflowy and vim
https://www.wuthejeff.com/vimflowy
MIT License
1.6k stars 111 forks source link

Input non-English punctuation failed #294

Open HineBlack opened 6 years ago

HineBlack commented 6 years ago

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.

WuTheFWasThat commented 6 years ago

Thanks for the report!

@yuanotes do you know anything about this?

yuanotes commented 6 years ago

@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.

HineBlack commented 6 years ago

@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?

yuanotes commented 6 years ago

Pull requests are welcome! :)

Hine notifications@github.com于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 .