Replace Char event with TextInput event for CJK IME support.