Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(ios): Make Bridge webView first responder #7753

Merged
merged 7 commits into from
Nov 21, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ios/Capacitor/Capacitor/CAPBridgeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ import Cordova

override open func viewDidLoad() {
super.viewDidLoad()
self.becomeFirstResponder()
loadWebView()
}

override open func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
self.webView?.becomeFirstResponder()
}

override open func canPerformUnwindSegueAction(_ action: Selector, from fromViewController: UIViewController, withSender sender: Any) -> Bool {
return false
Expand Down