Condividi tramite


InputKeyboardSource.CharacterReceived Evento

Definizione

Si verifica quando viene ricevuto un nuovo carattere dalla coda di input.

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

Tipo evento

Commenti

Le app non ricevono questo evento quando un editor di metodi di input (IME) è abilitato. L'editor di metodi di input (IME) gestisce tutti gli input della tastiera e imposta Handled su true.

Si applica a

Vedi anche

  • <xref:%601>