Fixes the in-app banner issue.

This commit is contained in:
jahorton 2019-07-26 12:52:17 +07:00
parent 1576c1a124
commit 20fc5dee5a

View file

@ -179,8 +179,10 @@ open class InputViewController: UIInputViewController, KeymanWebDelegate {
open override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
// Necessary for existing infrastructure to resend info for the keyboard after reloading
// as system keyboard.
Manager.shared.shouldReloadKeyboard = true
// as system keyboard. Do NOT perform if in-app, as this unnecessarily resets the WebView.
if(Manager.shared.isSystemKeyboard) {
Manager.shared.shouldReloadKeyboard = true
}
}
open override func textDidChange(_ textInput: UITextInput?) {