ICoreWebView2AcceleratorKeyPressedEventArgs2

Undocumented in source.
version(Windows && inline_webview2_bindings && all)
interface ICoreWebView2AcceleratorKeyPressedEventArgs2 : ICoreWebView2AcceleratorKeyPressedEventArgs {
static const
GUID iid;
}

Members

Functions

get_IsBrowserAcceleratorKeyEnabled
HRESULT get_IsBrowserAcceleratorKeyEnabled(BOOL* value)

This property allows developers to enable or disable the browser from handling a specific browser accelerator key such as Ctrl+P or F3, etc.

put_IsBrowserAcceleratorKeyEnabled
HRESULT put_IsBrowserAcceleratorKeyEnabled(BOOL value)

Sets the IsBrowserAcceleratorKeyEnabled property.

Inherited Members

From ICoreWebView2AcceleratorKeyPressedEventArgs

get_KeyEventKind
HRESULT get_KeyEventKind(COREWEBVIEW2_KEY_EVENT_KIND* keyEventKind)

The key event type that caused the event to run.

get_VirtualKey
HRESULT get_VirtualKey(UINT* virtualKey)

The Win32 virtual key code of the key that was pressed or released. It is one of the Win32 virtual key constants such as VK_RETURN or an (uppercase) ASCII value such as A. Verify whether Ctrl or Alt are pressed by running GetKeyState(VK_CONTROL) or GetKeyState(VK_MENU).

get_KeyEventLParam
HRESULT get_KeyEventLParam(INT* lParam)

The LPARAM value that accompanied the window message. For more information, navigate to WM_KEYDOWN and WM_KEYUP.

get_PhysicalKeyStatus
HRESULT get_PhysicalKeyStatus(COREWEBVIEW2_PHYSICAL_KEY_STATUS* physicalKeyStatus)

A structure representing the information passed in the LPARAM of the window message.

get_Handled
HRESULT get_Handled(BOOL* handled)

During AcceleratorKeyPressedEvent handler invocation the WebView is blocked waiting for the decision of if the accelerator is handled by the host (or not). If the Handled property is set to TRUE then this prevents the WebView from performing the default action for this accelerator key. Otherwise the WebView performs the default action for the accelerator key.

put_Handled
HRESULT put_Handled(BOOL handled)

Sets the Handled property.

Meta