InputKeyboardSource.CharacterReceived Event
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.
Occurs when a new character is received by the input queue.
// Register
event_token CharacterReceived(TypedEventHandler<InputKeyboardSource, CharacterReceivedEventArgs const&> const& handler) const;
// Revoke with event_token
void CharacterReceived(event_token const* cookie) const;
// Revoke with event_revoker
InputKeyboardSource::CharacterReceived_revoker CharacterReceived(auto_revoke_t, TypedEventHandler<InputKeyboardSource, CharacterReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<InputKeyboardSource,CharacterReceivedEventArgs> CharacterReceived;
function onCharacterReceived(eventArgs) { /* Your code */ }
inputKeyboardSource.addEventListener("characterreceived", onCharacterReceived);
inputKeyboardSource.removeEventListener("characterreceived", onCharacterReceived);
- or -
inputKeyboardSource.oncharacterreceived = onCharacterReceived;
Public Custom Event CharacterReceived As TypedEventHandler(Of InputKeyboardSource, CharacterReceivedEventArgs)
Event Type
Remarks
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.