There is a little difference between TWebView and TWebView2 regarding the focus.
TWebView2 does not gives the focus to the webpage automatically. In order to do it this is required:
SetFocus( GetWindow( oWnd:hWnd, 5 ) ) // GW_CHILD
This way we properly give the focus to the webview hWnd :wink:
TWebView2 does not gives the focus to the webpage automatically. In order to do it this is required:
SetFocus( GetWindow( oWnd:hWnd, 5 ) ) // GW_CHILD
This way we properly give the focus to the webview hWnd :wink: