[SimpleTextInput] Fix InputDelegate to be of the right type. ObjC can call us with any type conforming to the right protocol. Fixes #18339.