次の方法で共有


InputKeyboardSource.CharacterReceived イベント

定義

入力キューが新しい文字を受信したときに発生します。

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

イベントの種類

注釈

入力メソッド エディター (IME) が有効になっている場合、アプリはこのイベントを受け取りません。 入力メソッド エディター (IME) は、すべてのキーボード入力を処理し、 Handled を true に設定します。

適用対象

こちらもご覧ください

  • <xref:%601>