lyfeyaj / sublime-text-imfix

Fix Sublime Text 3 Input method problem (CJK words) under Ubuntu
937 stars 194 forks source link

Fix for fcitx does not work, but fix for xim immodule works for fcitx #50

Closed nemo-nullius closed 6 years ago

nemo-nullius commented 6 years ago

At first, thank you so much for this wonderful fix.

It is very strange that in my case, after patching this fix, I cannot get it to work. Everytime when I switch to fcitx in sublime text, it will keep switching back to English keyboard again, and I cannot type in any Chinese characters at all. However, after I delete all the lines from 38 to 115 in sublime-imfix.c (all the codes concerning fcitx are deleted and xim are left) and then re-compile and use it, this time it works very well. I can type in Chinese characters with fcitx as usual! So I am very confused about the outcome - why codes for fcitx does not work for fcitx but those for xim does work for fcitx in my case?

My environment is as follows:

Thank you for your help!

lyfeyaj commented 6 years ago

Couldn't reproduce ...

nemo-nullius commented 6 years ago

It is indeed quite strange... But thank you so much all the same for your help!

By the way, I also find that the behavior of deleting is not correct in sublime with fcitx after patching. Everytime when I press backspace, it deletes the words in sublime rather than those in the input box of fcitx. This issue seems to be prevalent and seems to have perplexed many people on the internet. Do you know any solution to this problem please?

nemo-nullius commented 6 years ago

I have come up with a method to work around this backspace problem. See #46