| Summary: | SDL_SetTextInputRect has no effect on iOS | ||
|---|---|---|---|
| Product: | SDL | Reporter: | philhassey <phil> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | amaranth72, icculus, phil |
| Version: | 2.0.1 | Keywords: | triage-2.0.4 |
| Hardware: | ARM | ||
| OS: | iOS 6 | ||
| Attachments: |
Patch to implement SDL_SteTextInputRect for uikit/iOS.
Patch to add iOS 8 support for SDL_SetTextInputRect |
||
|
Description
philhassey
2013-11-06 15:50:50 UTC
I'm not sure how we'd do this on iOS. Any ideas? Created attachment 1417 [details]
Patch to implement SDL_SteTextInputRect for uikit/iOS.
This patch implements SDL_SetTextInputRect for uikit/iOS.
It sets up notification handlers to respond to changes in the display of the keyboard. These handlers then change the frame of the view so it is moved out of the way of the keyboard as per SetTextInputRect.
Great work, thanks! https://hg.libsdl.org/SDL/rev/e4d2f3375868 Created attachment 2050 [details]
Patch to add iOS 8 support for SDL_SetTextInputRect
I've updated this patch to add support for iOS 8. iOS 8 changed how coordinate systems worked, so the keyboard was opening improperly on all iOS 8 devices.
-Phil
I've re-opened this issue because my original patch only worked for iOS <= 7. This patch now supports 7 and 8. My large iOS improvement patch (https://bugzilla.libsdl.org/show_bug.cgi?id=2798) also contains a fix for this on iOS 8+. |