Compartir a través de


InputKeyboardSource.CharacterReceived Evento

Definición

Se produce cuando la cola de entrada recibe un nuevo carácter.

// 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 de evento

Comentarios

Las aplicaciones no reciben este evento cuando se habilita un Editor de métodos de entrada (IME). El Editor de métodos de entrada (IME) controla todas las entradas de teclado y establece Handled en true.

Se aplica a

Consulte también

  • <xref:%601>