merge
This commit is contained in:
parent
4cffd1da73
commit
1eaf70a046
|
@ -39,6 +39,7 @@
|
|||
- Merged "Fixes zoomBy with floats (iOS)" [#1109](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1109) (thanks to [Manuito83](https://github.com/Manuito83))
|
||||
- Merged "Build on and support Android 12 SDK 31" [#1111](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1111) (thanks to [carloserazo47](https://github.com/carloserazo47))
|
||||
- Merged "Fix takeScreenshot Crash on iOS" [#1123](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1123) (thanks to [a00012025](https://github.com/a00012025))
|
||||
- Merged "Feature. Possibility to disable iOS above keyboard inputAccessoryView" [#1124](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1124) (thanks to [cutzmf](https://github.com/cutzmf))
|
||||
|
||||
## 5.3.2
|
||||
|
||||
|
|
|
@ -58,7 +58,6 @@ public class FlutterWebViewController: NSObject, FlutterPlatformView {
|
|||
contextMenu: contextMenu,
|
||||
channel: channel!,
|
||||
userScripts: userScripts)
|
||||
webView?.disableInputAccessoryView = options.disableInputAccessoryView
|
||||
}
|
||||
|
||||
methodCallDelegate = InAppWebViewMethodHandler(webView: webView!)
|
||||
|
|
|
@ -2955,10 +2955,8 @@ if(window.\(JAVASCRIPT_BRIDGE_NAME)[\(_callHandlerID)] != null) {
|
|||
print("InAppWebView - dealloc")
|
||||
}
|
||||
|
||||
// var accessoryView: UIView?
|
||||
var disableInputAccessoryView = false
|
||||
// https://stackoverflow.com/a/58001395/4637638
|
||||
public override var inputAccessoryView: UIView? {
|
||||
return disableInputAccessoryView ? nil : super.inputAccessoryView
|
||||
return options?.disableInputAccessoryView ?? false ? nil : super.inputAccessoryView
|
||||
}
|
||||
}
|
||||
|
|
|
@ -223,8 +223,8 @@ class IOSInAppWebViewOptions
|
|||
///The default value is `false`.
|
||||
bool disableLongPressContextMenuOnLinks;
|
||||
|
||||
///Set to `true` to disable inputAccessoryView above system keyboard
|
||||
///https://developer.apple.com/documentation/uikit/uiresponder/1621119-inputaccessoryview
|
||||
///Set to `true` to disable the [inputAccessoryView](https://developer.apple.com/documentation/uikit/uiresponder/1621119-inputaccessoryview) above system keyboard.
|
||||
///The default value is `false`.
|
||||
bool disableInputAccessoryView;
|
||||
|
||||
IOSInAppWebViewOptions(
|
||||
|
|
Loading…
Reference in New Issue