CoreWindow.CharacterReceived 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當輸入佇列收到新字元時,就會引發 。
// 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。