fix input event handler for Chinese input methods