-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spell check suggestion text is not available in ContextMenuRequested event #2340
Comments
Thanks for the bug report @q71114 - I've added this to our backlog. |
I am also facing same issue in release build 1.0.1185.39 |
Description
And now a curious behavior. If I remove Version |
@carlosbet , your "curious behaviour" sounds like it could be #3142 |
When right clicking for the context menu on the misspelled word text, what are you seeing? Are there blank strings in the menu items or is there the placeholder (i.e. "Getting suggestions")? |
@srwei Following @q71114 's repro steps, we're seeing blank labels in the
Note that this is repro'd by handling CoreWebView2.ContextMenuRequested event, as per the original bug report. |
When can we expect this issue to be resolved? Without it we cannot fully integrate WebView2 in our application and this bug has been open for more than a year already... |
I also would like to know the current state of this issue. @srwei |
The spell checking APIs are currently completely broken. Because of this bug a custom context menu cannot be used (since you're left with blank labels so the spelling options cannot be displayed for users), but even if you attempt to use a non-custom context menu, because of issue 3142 the spelling suggestions just never appear. |
Hello, A fix has been checked into Canary 123+. Can you please check if this issue is resolved for you? Thanks! |
Hi @nishitha-burman, Thanks for letting us know, unfortunately it still doesn't seem to work. |
Hello, Can you please try with Runtime version 123.0.2377.0? Thanks! |
Also note that if you switch to customized context menu live. You gonna need to refresh once to resolve the blank issue |
@nishitha-burman Using but this issue with the customized context menu is still not fixed:
Hi @dianaqu, thanks for your suggestion. I tried to click on |
Hi @q71114 |
Unfortunately custom context menu items still do not have the spellcheck text available, I don't exactly know what you mean by your latest suggestion @dianaqu but can we expect a fix soon? I'm also especially interested as the 1.0.2277.86 SDK update mentions "Ensured that the spellcheck language matches put_Language programmatically. The customized context menu is also updated with correct spellchecks. (Runtime-only)" which seems to be this issue, so it will be fixed in Stable 121.0.2277.86+ as well? |
@dianaqu, I'm so sorry, but it's still not clear to me what is the workaround here. Do you mind sharing a code sample that I can try out? |
@nishitha-burman Do you mind sharing what you tried to get it working? |
Was there some breaking change around this recently? |
@nirbil yes and no. We have shipped couple fixes to ensure spellcheck works for different languages. And we noticed a bug that without using put_Language to set language to en-US, spellcheck will get disabled. The current workaround is to set language. I'm working on fixing the issue. |
I ensured that the default language is set to 'en-US' in the app manifest. |
What version of WebView2 runtime are you using? And what channel? |
Latest version - 1.0.2277.86. |
121.0.2277.112 have all fixes we cherry pick. Could you update and try that? |
That's the current stable release channel version. |
@dianaqu @nishitha-burman Is there any update on this? I'd love to try out the aforementioned workaround if you could share it with me. |
@q71114 In the Sample app code I set |
@nishitha-burman Thanks for that. I only ever tried the WPF integration sample app ( |
Should I start a separate regression bug for WinUI2/UWP? |
We have a internal item tracking this |
In WPF you can do something like this |
@nirbil @q71114 Note that our sample app is painting context menu for text selection cases. So if you try it in sample app, spellcheck won't be available |
@dianaqu We're using our own context menu so we'd really appreciate it if the spellcheck suggestions would be available as soon as possible. |
We do the former.
Just to clarify this means this bug is still not fixed as you have a separate backlog item for it. The one you fixed is this issue: #3142 |
Yes. It's a separate issue from #3142. We fixed the spellcheck for using browser context menu since that don't require any SDK change. for painting your own context menu, that require a bit more change |
Is there any news on when this will be fixed? |
Is this currently worked on is it in the backlog? |
Description
CoreWebView2ContextMenuRequestedEventArgs.MenuItems
forCoreWebView2.ContextMenuRequested
event contain list of commands withspellcheck
name but there's no way to get the actual suggestion text.Version
SDK: 1.0.1189-prerelease
Runtime: 100.0.1185.29
Framework: WPF
OS: Win11
Repro Steps
CoreWebView2.ContextMenuRequested
spellcheck
commands inCoreWebView2ContextMenuRequestedEventArgs.MenuItems
but there's no suggestions available for any of them. Setting theirCommandId
asSelectedCommandId
works properly as the misspelled word will be corrected.Screenshots
Additional context
Without this information it's not possible for us to build a custom context menu with spell check suggestions.
AB#45525011
The text was updated successfully, but these errors were encountered: