-
Notifications
You must be signed in to change notification settings - Fork 51
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
TAB/SHIFT-TAB navigation issue #933
Comments
I see a similar issue using shift+Tab then shift+F6 when I host a WebView2 control in an Excel Task Pane. In my case, Excel goes into "Not Responding" and uses 25% or so of my CPU. The webview2 processes are idle. I am using the same SDK and RT as @mikeduglas |
Possibly related to #589 ? |
Yes these issues might be related. I think we probably have a bug around expecting the parent of the WebView2 control to be a Form or something, and are running into these issues when the parent is different - Win32 HWND and/or TaskPane. I've opened a bug on our backlog to track this and will link it to the #589 bug as well. Thanks! |
Would be great to have FocusMoving event with a flag indicating "by tab key or by mouse" it is moving", source control, target control, and boolean "handled (or "cancel)" allowing to cancel the operation. |
Just tested new v1.0.774.44, unfortunately nothing has been changed and WebView2 is still unusable for us. |
With new updates the issue seems to gone away: SDK: 1.0.865-prerelease I will test more and close the issue if everything goes well. |
Yup this issue should be fixed in 1.0.865-prerelease SDK package. I'm going to close this issue now, but please let me know if you run into any issues around this. Thanks! |
Hi, I am not sure if it is an issue with ExcelDNA or with WebView, but I still have an issue with the keyboard focus when used with ExcelDNA Custom Task Panes:
|
Hey @alaincao - this sounds like a separate issue. Are you using Tab/Shift-Tab to move keyboard focus out of the WebView2? While focus is on the WebView2 it's expected that it will key the arrow up/down input until focus leaves the WebView2 control. |
I tried to use the tab key to move the focus out of the WebView control, but the focus cycles through the controls inside the HTML and never goes out ; I guess this is expected behaviour. Sorry, I was not too sure what to do with that issue so I put it here since it looked like related to focus. Should I create a separate issue? |
Description
When a keyboard focus is on first focusable element on web page and a user presses Shift-Tab, or
a keyboard focus is on last focusable element on web page and a user presses Tab, then WV2 control and entire program stops responding to any user interaction (keyboard, mouse), and the program must be killed thru Task manager.
Version
SDK: 1.0.705.50
Runtime: 88.0.705.63
Framework: WinForms, Win32
OS: Win10
Additional context
I'm using non standard environment: I have a WinForms dll that exports UserControl with WebView2 control. This control is embedded into Win32 window (using SetParent api). So far so good except this issue with TAB navigation.
.
AB#31757154
The text was updated successfully, but these errors were encountered: