fix crash of textinput test case

Can not show soft keyboard, i don't know why. I will fix it in other pull request.