WebView Edge: ensure keyboard focus is inside the webview document if the WebView window gets focus before MS Webview2 is fully initialized (PR #26156)

15 views
Skip to first unread message

glenrgordon

unread,
Feb 3, 2026, 11:13:17 AM (2 days ago) Feb 3
to wx-...@googlegroups.com, Subscribed

If focus moved to the wxWebView window before the Edge instance was
fully created, we couldn't call m_webViewController->MoveFocus at that
time. If focus is on the wxWebview at the time we get the
wxWebViewEdgeImpl::OnWebViewCreated callback, we now call MoveFocus to
ensure that focus is inside of the web content window. This helps
screen readers, since they use the focus window to influence their
behavior.

Fixes #26155


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26156

Commit Summary

  • ae222e2 WebView Edge: ensure keyboard focus is inside the webview document if the WebView window gets focus before MS Webview2 is fully initialized

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26156@github.com>

VZ

unread,
Feb 3, 2026, 1:05:56 PM (2 days ago) Feb 3
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26156)

Thanks for fixing this, will merge soon.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26156/c3842788196@github.com>

VZ

unread,
Feb 4, 2026, 5:04:36 PM (20 hours ago) Feb 4
to wx-...@googlegroups.com, Subscribed

Closed #26156 via 5d473a8.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26156/issue_event/22541651138@github.com>

Reply all
Reply to author
Forward
0 new messages