MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Spell check suggestion text is not available in ContextMenuRequested event

Open
#2,340 39 comments 0 reactions 1 assignee View on GitHub

@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

  1. Add event handler to CoreWebView2.ContextMenuRequested
  2. Start the application
  3. Right click on a misspelled word
  4. There are spellcheck commands in CoreWebView2ContextMenuRequestedEventArgs.MenuItems but there's no suggestions available for any of them. Setting their CommandId as SelectedCommandId works properly as the misspelled word will be corrected.

Screenshots
image

Additional context
Without this information it's not possible for us to build a custom context menu with spell check suggestions.

AB#45525011

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.