Delen via


CharacterReceivedEventArgs.KeyCode Property

Definition

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

UInt32

unsigned int

uint32_t

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.

Applies to

See also