Forum Xamarin.Forms

Prevent webview from loosing focus on iOS

CarlosFerreiraCarlosFerreira PTMember ✭✭
edited January 2019 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:

Any idea on how can i solve this ?


Sign In or Register to comment.