ICoreWebView2AcceleratorKeyPressedEventArgs

Undocumented in source.

Members

Functions

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.

get_KeyEventKind
HRESULT get_KeyEventKind(COREWEBVIEW2_KEY_EVENT_KIND* keyEventKind)

The key event type that caused the event to run.

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_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).

put_Handled
HRESULT put_Handled(BOOL handled)

Sets the Handled property.

Meta