Revert "Fix bug for input method on Windows."

This reverts commit 68c66f7640ab952a1ca92a4ff92b8a76d6de1ce0.