Fix bug of some IMEs cannot input in terminal
Fix bug of some IMEs cannot input in terminal

Fix bug of QQ pinyin and Rime IME cannot input characters in terminal.
xtermjs/xterm.js,xtermjs/xterm.js,Tyriar/xterm.js,sourcelair/xterm.js,sourcelair/xterm.js,sourcelair/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,xtermjs/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,sourcelair/xterm.js