Compartilhar via


CoreWebView2AcceleratorKeyPressedEventArgs.VirtualKey Property

Definition

Gets the Win32 virtual key code of the key that was pressed or released.

public uint VirtualKey { get; }
member this.VirtualKey : uint32
Public ReadOnly Property VirtualKey As UInteger

Property Value

Remarks

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

Applies to