Prevent webview from loosing focus on iOS

CarlosFerreiraCarlosFerreira ✭✭PTMember ✭✭
edited January 17 in Xamarin.Forms

I'm trying to create an editor using Xamarin Forms.
The editor is a webview with content editable and a toolbar below.

The way i'm doing it with the following structure:

Grid with two rows
-->WebView [Row 1]
-->ScrollView with horizontal Scroll [Row 2]
---->Stacklayout (with editor actions)
---------> Pick Photo
---------> Bold
---------> Underline
---------> ...

It works well on Android, when i tap on the buttons, it executes the javascript on the webview,the keyboard remains open and the webview doesn't loose focus.

On iOS the webview looses focus and the keyboard closes.
Like this:

https://drive.google.com/file/d/1gO2AdLUy2VYTVNyhAaypaGGQ2mT6RcJ5/view?usp=sharing

Any idea on how can i solve this ?

Answers

Sign In or Register to comment.