fix lag when input using pinyin input method

which makes editor not usable