External Keyboard Text Navigation Broken: Option-Up

Originator:maxseelemann
Number:rdar://25824277 Date Originated:16-04-20
Status:Open Resolved:
Product:iOS Product Version:9.3.1
Classification:Serious Issue Reproducible:Always
 
Summary:
Using an external keyboard, the key command ⌥↑ (option-up) does not work, when used a second time.

Steps to Reproduce:
- Run the attached sample project on an iPad Simulator
- Tap into the UITextView on screen
- Place insertion point in the last Paragaph (e.g. after "cursus")
- Ensure the External keyboard is connected
- Press ⌥↑ (option-up)
- Press ⌥↑ (option-up)

Expected Results:
On the first use of ⌥↑ (option-up), the cursor jumps to the beginning of the paragraph. On the second invocation, the cursor jumps to the paragraph above.

Actual Results:
On the first use of ⌥↑ (option-up), the cursor jumps to the beginning of the paragraph. (correct) On the second invocation, however, the cursor does not move.

Version:
iOS 9.3.1

Notes:
The counterpart command ⌥↓ (option-down) works correctly. There seems to be an issue in UITextInputTokenizer not returning correct positions.

This is a regression from (at least) iOS 8.

Configuration:
Any iOS device

Attachments:
'textedit.zip' was successfully uploaded. http://cl.ly/fkFE

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!