interface ICoreWebView2MoveFocusRequestedEventArgs
Note
This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.
interface ICoreWebView2MoveFocusRequestedEventArgs
: public IUnknown
Event args for the MoveFocusRequested
event.
Summary
Members | Descriptions |
---|---|
get_Handled | Indicates whether the event has been handled by the app. |
get_Reason | The reason for WebView to run the MoveFocusRequested event. |
put_Handled | Sets the Handled property. |
Applies to
Product | Introduced |
---|---|
WebView2 Win32 | 0.9.430 |
WebView2 Win32 Prerelease | 0.9.488 |
Members
get_Handled
Indicates whether the event has been handled by the app.
public HRESULT get_Handled(BOOL * value)
If the app has moved the focus to another desired location, it should set the Handled
property to TRUE
. When the Handled
property is FALSE
after the event handler returns, default action is taken. The default action is to try to find the next tab stop child window in the app and try to move focus to that window. If no other window exists to move focus, focus is cycled within the web content of the WebView.
get_Reason
The reason for WebView to run the MoveFocusRequested
event.
public HRESULT get_Reason(COREWEBVIEW2_MOVE_FOCUS_REASON * reason)
put_Handled
Sets the Handled
property.
public HRESULT put_Handled(BOOL value)