Skip to content
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

Left click spellcheck menu causes WebView to lost focus #3012

Open
kwystemp opened this issue Dec 1, 2022 · 5 comments
Open

Left click spellcheck menu causes WebView to lost focus #3012

kwystemp opened this issue Dec 1, 2022 · 5 comments
Labels
bug Something isn't working status-circle back Check back after requesting general information.

Comments

@kwystemp
Copy link

kwystemp commented Dec 1, 2022

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

@kwystemp kwystemp added the bug Something isn't working label Dec 1, 2022
@nishitha-burman
Copy link
Collaborator

Hi @kwystemp,

This version of spellcheck has been disabled in WebView2 and is reverted to the old spellcheck feature. Can you check if you are still getting this issue?

Thanks

@kwystemp
Copy link
Author

kwystemp commented Dec 5, 2022

Hi @nishitha-burman,
Thanks for response. Yes, I'm getting this issue using SDK 1.0.1418.22 installed from NuGet. I've also tried 1.0.1466-prerelease - please see attached sample project.

@nishitha-burman
Copy link
Collaborator

Hi @kwystemp are you used an Evergreen or Fixed version of WebView2? And what version of the runtime are you using?

@kwystemp
Copy link
Author

kwystemp commented Dec 6, 2022

Hi @nishitha-burman, I used Evergreen bootstrapper and have 107.0.1418.62 runtime version installed.

@victorhuangwq
Copy link
Collaborator

Are you still facing this issue?

@victorhuangwq victorhuangwq added the status-circle back Check back after requesting general information. label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status-circle back Check back after requesting general information.
Projects
None yet
Development

No branches or pull requests

4 participants