CoreAcceleratorKeys.AcceleratorKeyActivated Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Fired when an accelerator key is pressed or activated.
// 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
Event Type
Implements
Remarks
Windows 10 Apps do not receive this event when an Input Method Editor (IME) is enabled. The Input Method Editor (IME) handles all keyboard input and sets Handled to true.
Windows Phone This API is supported in native apps only.