Skip to content

Spell check suggestion text is not available in ContextMenuRequested event #2340

Open
@q71114

Description

@q71114

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions