documentContextBeforeInput/documentContextAfterInput too short
| Originator: | bergamot | ||
| Number: | rdar://17631283 | Date Originated: | |
| Status: | Resolved: | ||
| Product: | Product Version: | ||
| Classification: | Reproducible: |
Summary: UITextDocumentProxy's documentContextBeforeInput and documentContextAfterInput properties are too limited in what they return. I understand that there are privacy concerns with returning the whole text, but even a small amount more context than we currently get would be a welcome change. If the cursor is at the end of a word, before a space, the documentContextAfterInput just gives the space, not the next word. DocumentContextBeforeInput has some similar issues when the cursor is near the front of a string. For some reason, documentContextBeforeInput is usually much longer than documentContextAfterInput, even though there's no reason to assume the text before is less private than the text after Also, when text is selected, we get whatever is on either side of the selection, but not the selection itself, which is probably the most important piece of information for determining what the user is going to type next. Steps to Reproduce: Write an iOS Keyboard Extension, and despair. Expected Results: More context Actual Results: Less context Version: 8.0 beta 3 Notes: Configuration: iPhone Simulator Attachments:
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!