Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

InputAccessoryView in WkWebView is readonly (should be changeable) #13566

Closed
andreas-siegmund opened this issue Jan 27, 2021 · 2 comments
Closed

Comments

@andreas-siegmund
Copy link

Description

(I'm quite new to Xamarin development and this is my first issue, so please be generous if I do something wrong)

Since 2019 the field InputAccessoryView in WkWebView should be changeable (see here).
The current implementation in Xamarin is as follows:

[get: Foundation.Export("inputAccessoryView")]
public virtual UIKit.UIView InputAccessoryView { get; }

Impact

Many RichtText-Editors are implemented using a WkWebView with contenteditable="true" to edit HTML formatted text.
Because this field is read-only it is not possible to change the toolbar above the keyboard and only a not very useful standard toolbar is shown:
image

The field needs to be editable to allow serious implementations as follows (or even disable this toolbar completely):

image

Steps to Reproduce

image

Expected Behavior

Field InputAccessoryView can be assigned.

Actual Behavior

Field InputAccessoryView cannot be assigned.

Further information

The field InputAccessoryView for Entry types can be assigned successfully:

image

(This code compiles and it is possible to successfully set a custom toolbar - this serves as proof that Xamarin is able to do it)

Please let me know if some information or anything else is missing. I am more than happy to help getting it fixed.
Thanks in advance to everybody helping here...

Basic Information

  • Version with issue: Xamari.Forms 5.0.0
  • Last known good version: (I assume it was not working before)
@jfversluis
Copy link
Member

Thanks for this suggestion! As Xamarin.Forms is now in maintenance mode, this will not happen anymore for Xamarin.Forms. We're only adding bugfixes and stability fixes.

If this is still important to you, make sure to check the .NET MAUI repo and see if it's already on the roadmap. If not, feel free to open a discussion to discuss a change first or open an issue with a detailed feature request. Thanks!

@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2022
@mhamann
Copy link

mhamann commented Nov 1, 2023

@andreas-siegmund did you find a workaround for this on Xamarin?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants