some fixes for multiple-mode textinput

#4258 
Fixed. Sorry for the delay, I just woke up.