次の方法で共有


CoreWindow.CharacterReceived イベント

定義

入力キューで新しい文字を受信すると発生します。

// Register
event_token CharacterReceived(TypedEventHandler<CoreWindow, CharacterReceivedEventArgs const&> const& handler) const;

// Revoke with event_token
void CharacterReceived(event_token const* cookie) const;

// Revoke with event_revoker
CoreWindow::CharacterReceived_revoker CharacterReceived(auto_revoke_t, TypedEventHandler<CoreWindow, CharacterReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreWindow,CharacterReceivedEventArgs> CharacterReceived;
function onCharacterReceived(eventArgs) { /* Your code */ }
coreWindow.addEventListener("characterreceived", onCharacterReceived);
coreWindow.removeEventListener("characterreceived", onCharacterReceived);
- or -
coreWindow.oncharacterreceived = onCharacterReceived;
Public Custom Event CharacterReceived As TypedEventHandler(Of CoreWindow, CharacterReceivedEventArgs) Implements CharacterReceived

イベントの種類

実装

注釈

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

適用対象

こちらもご覧ください