CoreAcceleratorKeys.AcceleratorKeyActivated 事件

定义

按下或激活加速键时触发。

// Register
event_token AcceleratorKeyActivated(TypedEventHandler<CoreDispatcher, AcceleratorKeyEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreAcceleratorKeys::AcceleratorKeyActivated_revoker AcceleratorKeyActivated(auto_revoke_t, TypedEventHandler<CoreDispatcher, AcceleratorKeyEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreDispatcher,AcceleratorKeyEventArgs> AcceleratorKeyActivated;
function onAcceleratorKeyActivated(eventArgs) { /* Your code */ }
coreAcceleratorKeys.addEventListener("acceleratorkeyactivated", onAcceleratorKeyActivated);
coreAcceleratorKeys.removeEventListener("acceleratorkeyactivated", onAcceleratorKeyActivated);
- or -
coreAcceleratorKeys.onacceleratorkeyactivated = onAcceleratorKeyActivated;
Public Custom Event AcceleratorKeyActivated As TypedEventHandler(Of CoreDispatcher, AcceleratorKeyEventArgs) Implements AcceleratorKeyActivated

事件类型

实现

注解

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

Windows Phone此 API 仅在本机应用中受支持。

适用于

另请参阅