fix input not working under IME

fix #213