共用方式為


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

事件類型

實作

備註

當啟用 輸入法編輯器 (輸入法) 時,應用程式不會收到此事件。 輸入法編輯器 (輸入法) 處理所有鍵盤輸入,並將 [已處理 ] 設定為 true

適用於

另請參閱