MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Spell check suggestion text is not available in ContextMenuRequested event
Open
@srwei is already working on this.
Since Jul 10, 2023.
bug
tracked
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Description
CoreWebView2ContextMenuRequestedEventArgs.MenuItems for CoreWebView2.ContextMenuRequested event contain list of commands with spellcheck 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
- Add event handler to
CoreWebView2.ContextMenuRequested - Start the application
- Right click on a misspelled word
- There are
spellcheckcommands inCoreWebView2ContextMenuRequestedEventArgs.MenuItemsbut there's no suggestions available for any of them. Setting theirCommandIdasSelectedCommandIdworks 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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.