Chinese character suggestions do not trigger textField:shouldChangeCharactersInRange:replacementString:

Originator:michaelhochs
Number:rdar://24087514 Date Originated:07-Jan-2016 09:34 AM
Status:Open Resolved:
Product:iOS SDK Product Version:9.2
Classification:Serious Bug Reproducible:Always
 
Summary:
When typing chinese text in a text field with one of the chinese software keyboards from iOS, choosing a chinese character does not trigger the text field’s delegate method ‘textField:shouldChangeCharactersInRange:replacementString:’.

Steps to Reproduce:
- Enable chinese keyboards on the test device
- Launch the attached sample project
- Start typing in the text field with english and chinese keyboards

Expected Results:
- The background of the view controller’s view should flash green with every character you type.

Actual Results:
- It flashes green whenever you tap on a character on the main keyboard, no matter whether it is an english or chinese keyboard.
- It flashes green if you choose an auto suggestion word in the english keyboard
- It does not flash green if you choose a chinese character from the chinese keyboard’s character suggestion bar

Regression:

Notes:
Please also find a screen cast illustrating the video.


Sample project: https://github.com/michaelochs/radars/tree/master/24087514%20-%20chinese%20text%20input

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!