fix the bug that the text box can not be input with keyboard