iPad external keyboards prevent from typing in MFMailComposeViewController

Originator:akshaynhegde
Number:rdar://26763856 Date Originated:13-Jun-2016
Status:Open Resolved:No
Product:iPad Product Version:
Classification: Reproducible:Always
 
We have users reporting issues when using an external hardware keyboard and while trying to email a document, they are not able to type.

We tried to reproduce and it indeed is reproducible even with the iPad Pro (with a Apple keyboard and Logitech keyboard).

One of our user's who reported the issue initially, is using iPad Air with a Zagg Rugged Book.

Video Of the Issue : https://app.box.com/s/v53uhhzmj63eyh9jpzj3tqha84v01i0r

Checking the code, here is the snippet, that is presenting the MFMailComposeViewController,

-(void)showEmailComposer
{

//This method also does other things like attaching the file. to the email. But I have commented out all that part to make sure that its not causing the problem. The bare minimum of code that presents the mail composer is here and even with only these few lines of code the problem is reproducible.

if ([MFMailComposeViewController canSendMail]) {
MFMailComposeViewController *mailComposer = [[MFMailComposeViewController alloc] init];
mailComposer.mailComposeDelegate = self;
mailComposer.navigationBar.tintColor = [UIColor whiteColor];

//_pdfViewController is the reference to a UIViewController displaying the PDF. This method that shows the email composer is in a different class that is handling all the sharing.

[_pdfViewController presentViewController:mailComposer animated:YES completion:^{
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}];
}
}


There is a workaround that makes it work,

1. Click the home button. This will put the app in the background.
2. Now tap on the SignEasy app again. (You can even select the app from the multitask window by double clicking the home button)

The above steps, somehow make the keyboard function again.

I have not been able to figure out what could be causing the problem. It would be wonderful if you could help me figure out and fix this issue.

Steps to Reproduce:
- Open a signed document from SignEasy app on iPad (Use the external keyboard)
- Click on share/Export icon on the top right corner.
- Select email.
- Start typing - It will not type.
- Click the home button. This will put the app in the background.
- Now tap on the SignEasy app again. (You can even select the app from the multitask window by double clicking the home button)
- Now the Keyboard will start functioning.

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!