Merge pull request #434 from keymanapp/ios-bugfix-blank-system-wide-keyboard

re-parent and update delegates if they are lost during keyboard initi…
This commit is contained in:
Jacob Bullock 2017-11-27 20:18:22 -07:00 committed by GitHub
commit eb4b3c9ee5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,6 +134,14 @@ open class InputViewController: UIInputViewController, KeymanWebViewDelegate {
super.viewDidAppear(animated)
setConstraints()
inputView?.setNeedsUpdateConstraints()
//TODO: find out why this is actually happening
if let containerView = self.containerView {
if containerView.subviews.isEmpty {
Manager.shared.inputDelegate = self
containerView.addSubview(kmInputView)
}
}
}
open override func willRotate(to toInterfaceOrientation: UIInterfaceOrientation, duration: TimeInterval) {