WSA icon indicating copy to clipboard operation
WSA copied to clipboard

Spell checker correction suggestion menu not shown in WebView

Open Slion opened this issue 1 year ago • 2 comments

Steps to reproduce

It seems the Android spell checker service is mostly working on WSA. However no service is provided by default. Install OpenBoard which comes with its own spell checker service.

Open Android settings by running: adb.exe shell "am start -n 'com.android.settings/.Settings'"

Go to System > Languages and input > Spell checker and chose OpenBoard as your default spell checker

To test it you can install Fulguris and visit that page. Just type "checkin" for instance and it should get the red wavy underline.

Now the problem it that the correction suggestion menu is not popping up as you click the highlighted word. Though it works fine in the Amazon Appstore search box.

It also works mostly with WebViewDemo which is setup differently and behaves like on mobile rather than on desktop showing the selections marker and zoom. image image

✔️ Expected Behavior

Spell checker correction suggestion menu should be shown when you tap highlighted misspelled word.

❌ Actual Behavior

Spell checker correction suggestion menu is not shown.

Other Software

Fulguris Web Browser v1.9.1

Please specify the version of Windows Subsystem for Android

2306.40000.4.0

Slion avatar Jul 21 '23 14:07 Slion

Spell checker is a Google Play Services feature, not an AOSP feature. We can look into adding this feature, but that will depend on Microsoft having a suitable Android app we can drop in for this.

kevinkieselbach avatar Jul 21 '23 18:07 kevinkieselbach

Gboard spell checker is indeed part of Gapps and I understand why it is not part of WSA. However the Android spell checker service itself is part of AOSP. You just need to provide an implementation for it and as mentioned above the one from OpenBoard seems to be working well enough at least in the Amazon Appstore search field and in that WebViewDemo. However for some reason in my Fulguris app the WebView is configured differently and there the correction suggestion menu won't show up.

Slion avatar Jul 21 '23 19:07 Slion