Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.69 KB

iwebview2movefocusrequestedeventargs.md

File metadata and controls

51 lines (33 loc) · 1.69 KB
description title author ms.author ms.date ms.topic keywords
Event args for the MoveFocusRequested event.
WebView2 Win32 C++ IWebView2MoveFocusRequestedEventArgs
MSEdgeTeam
msedgedevrel
10/07/2020
reference
IWebView2, IWebView2WebView, webview2, webview, win32 apps, win32, edge

interface IWebView2MoveFocusRequestedEventArgs

[!INCLUDE deprecation-note]

interface IWebView2MoveFocusRequestedEventArgs
  : public IUnknown

Event args for the MoveFocusRequested event.

Summary

Members Descriptions
get_Reason The reason for WebView to fire the MoveFocus Requested event.
get_Handled Indicate whether the event has been handled by the app.
put_Handled Set the Handled property.

Members

get_Reason

The reason for WebView to fire the MoveFocus Requested event.

public HRESULT get_Reason(WEBVIEW2_MOVE_FOCUS_REASON * value)

get_Handled

Indicate whether the event has been handled by the app.

public HRESULT get_Handled(BOOL * value)

If the app has moved the focus to its desired location, it should set Handled property to TRUE. When Handled property is false after the event handler returns, default action will be 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 there is no other such window to move focus to, focus will be cycled within the WebView's web content.

put_Handled

Set the Handled property.

public HRESULT put_Handled(BOOL value)