You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2016/09/07 22:07:01 UTC

cordova-plugin-dialogs git commit: CB-8773: Fix for iOS 8 keyboard not appearing on prompt

Repository: cordova-plugin-dialogs
Updated Branches:
  refs/heads/master 7c4a5de3a -> 45850406a


CB-8773: Fix for iOS 8 keyboard not appearing on prompt

 This closes #50


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/45850406
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/45850406
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/45850406

Branch: refs/heads/master
Commit: 45850406a3115c788ab513d26d8be94cf0e63d9e
Parents: 7c4a5de
Author: Connor Pearson <cj...@gmail.com>
Authored: Wed Apr 1 20:12:11 2015 -0400
Committer: Steve Gill <st...@gmail.com>
Committed: Wed Sep 7 15:06:51 2016 -0700

----------------------------------------------------------------------
 src/ios/CDVNotification.m | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/45850406/src/ios/CDVNotification.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVNotification.m b/src/ios/CDVNotification.m
index d1f1e33..0dd3d2c 100644
--- a/src/ios/CDVNotification.m
+++ b/src/ios/CDVNotification.m
@@ -190,6 +190,14 @@ static NSMutableArray *alertList = nil;
     [self.commandDelegate sendPluginResult:result callbackId:cdvAlertView.callbackId];
 }
 
+- (void)didPresentAlertView:(UIAlertView*)alertView
+{
+    //show keyboard on iOS 8
+    if (alertView.alertViewStyle == UIAlertViewStylePlainTextInput){
+        [[alertView textFieldAtIndex:0] selectAll:nil];
+    }
+}
+
 static void playBeep(int count) {
     SystemSoundID completeSound;
     NSInteger cbDataCount = count;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org