Click or drag to resize

FocusHandlerOnSetFocus Method

Version 130.1.90
Called when the browser component is requesting focus.

Namespace: CefSharp.Handler
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
protected virtual bool OnSetFocus(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	CefFocusSource source
)

Parameters

chromiumWebBrowser  IWebBrowser
the ChromiumWebBrowser control
browser  IBrowser
the browser object, do not keep a reference to this object outside of this method
source  CefFocusSource
Indicates where the focus request is originating from.

Return Value

Boolean
Return false to allow the focus to be set or true to cancel setting the focus.
See Also