InputKeyboardSource.SystemKeyUp 事件

定义

当用户释放在同时按下 Alt 键时按下的键时发生。

// Register
event_token SystemKeyUp(TypedEventHandler<InputKeyboardSource, KeyEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
InputKeyboardSource::SystemKeyUp_revoker SystemKeyUp(auto_revoke_t, TypedEventHandler<InputKeyboardSource, KeyEventArgs const&> const& handler) const;
public event TypedEventHandler<InputKeyboardSource,KeyEventArgs> SystemKeyUp;
function onSystemKeyUp(eventArgs) { /* Your code */ }
inputKeyboardSource.addEventListener("systemkeyup", onSystemKeyUp);
inputKeyboardSource.removeEventListener("systemkeyup", onSystemKeyUp);
- or -
inputKeyboardSource.onsystemkeyup = onSystemKeyUp;
Public Custom Event SystemKeyUp As TypedEventHandler(Of InputKeyboardSource, KeyEventArgs) 

事件类型

注解

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

适用于

另请参阅