This is an automated email from the ASF dual-hosted git repository.

dpogue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git


The following commit(s) were added to refs/heads/master by this push:
     new 62a4b745 fix: make the WebView the first responder when it loads 
(#1337)
62a4b745 is described below

commit 62a4b74513ce6c857e47aab4ad1856c0f48016c9
Author: Darryl Pogue <[email protected]>
AuthorDate: Tue Jun 6 09:30:41 2023 -0700

    fix: make the WebView the first responder when it loads (#1337)
    
    Fixes #1132.
    Maybe fixes #455.
---
 CordovaLib/Classes/Public/CDVViewController.m | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CordovaLib/Classes/Public/CDVViewController.m 
b/CordovaLib/Classes/Public/CDVViewController.m
index cd3bc9a1..e47519b8 100644
--- a/CordovaLib/Classes/Public/CDVViewController.m
+++ b/CordovaLib/Classes/Public/CDVViewController.m
@@ -796,6 +796,10 @@
 
     [UIView animateWithDuration:fadeDuration animations:^{
         [self.launchView setAlpha:(visible ? 1 : 0)];
+
+        if (!visible) {
+            [self.webView becomeFirstResponder];
+        }
     }];
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to