共用方式為


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。

適用於

另請參閱