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) 

事件类型

注解

启用输入法编辑器 (输入法编辑器) 时,应用不会收到此事件。 输入法编辑器 (输入法) 处理所有键盘输入并将 Handled 设置为 true。

适用于

另请参阅

  • <xref:%601>