CharacterReceivedEventArgs.KeyCode 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 key code of the character received by the input queue.
public:
property unsigned int KeyCode { unsigned int get(); };
uint32_t KeyCode();
public uint KeyCode { get; }
var uInt32 = characterReceivedEventArgs.keyCode;
Public ReadOnly Property KeyCode As UInteger
Property Value
The character in UTF-16 encoding. Each supplementary character consists of a surrogate pair sent as two separate events.
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.