Files
UnrealEngineUWP/Engine/Source/Runtime/WebBrowser/Private/SWebBrowserView.cpp
dashan yue ec07061637 Workaround for a CEF issue related to keyboard focus.
- Add SetBrowserKeyboardFocus() function to SWebBrowserView. Calling this lets you manually synchronise the Slate keyboard focus state with the underlying browser widget.
- To work around CEF 2040 where focus state is lost on page navigation for the OSR renderer in some cases, call SetBrowserKeyboardFocus() when navigating to a new URL or creating iframes. The CEF team reports that v95 and above of CEF have a fix for this issue so this workaround may be removed once upgraded past that version.

[REVIEW] [at]erida.dule, [at]michael.kirzinger, [at]chris.varnsverry
#tests Ran on PC and tested with various 3rd party payment flows.

#ROBOMERGE-AUTHOR: dashan.yue
#ROBOMERGE-SOURCE: CL 19484629 via CL 19485048 via CL 19486922 via CL 19496854 via CL 19497200
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v936-19480137)

[CL 19498490 by dashan yue in ue5-main branch]
2022-03-24 13:30:42 -04:00

19 KiB