Fix the definitions about the text input delegate