KeyEventArgs.VirtualKey Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the virtual key that maps to the key that was pressed.
public:
property VirtualKey VirtualKey { VirtualKey get(); };
VirtualKey VirtualKey();
public VirtualKey VirtualKey { get; }
var virtualKey = keyEventArgs.virtualKey;
Public ReadOnly Property VirtualKey As VirtualKey
Property Value
The virtual key value.
Remarks
Windows 10 Apps do not receive this event when an Input Method Editor (IME) is enabled. The Input Method Editor (IME) handles all keyboard input and sets Handled to true.
Windows Phone This API is supported in native apps only.