| Summary: | [Patch] Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Diego <diegoacevedo91> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.1 | ||
| Hardware: | iPhone/iPod touch | ||
| OS: | iOS (All) | ||
| Attachments: |
dismiss keyboard patch
dismiss keyboard patch fix dismiss keyboard and macro fix |
||
Fixed, thanks! https://hg.libsdl.org/SDL/rev/ff5f3b3e6940 Created attachment 2642 [details]
dismiss keyboard patch fix
I was previously unaware that rotating the device to a different orientation when the keyboard is shown causes a keyboardWillHide followed by a keyboardWillShow notification. The previous patch would then mistakenly StopTextInput when rotating. This patch fixes that by checking if the device is rotating before stopping text input.
Reopening Created attachment 2643 [details]
dismiss keyboard and macro fix
This update corrects and explains the deprecated macro check.
Good catch, thanks! |
Created attachment 2407 [details] dismiss keyboard patch The keyboard on iPads has a dismiss button that hides the keyboard. When the keyboard was hidden using that button, instead of the return key, SDL was still reporting IsTextInputActive as true. This patch adds an extra SDL_StopTextInput when iOS reports the keyboard will hide.