| Summary: | [Patch] SDL_ShowMessageBox ignores BUTTON_RETURNKEY_DEFAULT flag | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Caleb Cornett <spydog> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | minor | ||
| Priority: | P2 | ||
| Version: | 2.0.10 | ||
| Hardware: | iPhone/iPod touch | ||
| OS: | iOS 11 | ||
| Attachments: | Patch for the described issue | ||
Patch added, thanks! https://hg.libsdl.org/SDL/rev/4436f8e76e5c |
Created attachment 3916 [details] Patch for the described issue SDL_ShowMessageBox on UIKit doesn't do anything special with buttons that are marked with the flag SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT. According to Apple's documentation on UIAlertController, a button can respond to a return key if it's marked as the preferredAction of the controller. SDL doesn't set a preferredAction currently, so I've attached a patch to fix that.