InputKeyboardSource.SystemKeyDown 事件

定义

当用户同时按下 Alt 键时按下某个键时发生。

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

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

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

事件类型

注解

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

适用于

另请参阅