Skip to content

Left click spellcheck menu causes WebView to lost focus #3012

Open
@kwystemp

Description

@kwystemp

Description
Hi,

I'm using the WebView2 control to render html page inside outlook plugin I implement. I've found that if I try to correct some spelling issue on the page using left mouse click context menu, the plugin loses focus after correct spelling is selected from the menu.

I've recreated the problem in simplified project containing only WebView and textbox control - after correct spelling is selected, focus moves to the textbox control instead staying on the WebView - please see attached project.

Using the right click also brings the spell checking menu and it works fine in simplified scenario, but unfortunately I can't use this option in my project as I have a CkEditor4 control on my html page that overrides default right click menu.

SDK: 1.0.1418.22
Framework: WinForms
OS: Windows 10 Enterprise

Repro Steps

  1. run the attached project and enter some incorrect spelling in the html page search box
  2. left click incorrect spelling
  3. select correct word from the menu
  4. the focus is set to the textbox control instead of WebView

Screenshots
image
image

Additional context
WindowsFormsApp1.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus-circle backCheck back after requesting general information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions