ICoreAcceleratorKeys.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.
Defines the event that is 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
ICoreAcceleratorKeys::AcceleratorKeyActivated_revoker AcceleratorKeyActivated(auto_revoke_t, TypedEventHandler<CoreDispatcher, AcceleratorKeyEventArgs const&> const& handler) const;
event TypedEventHandler<CoreDispatcher,AcceleratorKeyEventArgs> AcceleratorKeyActivated;
function onAcceleratorKeyActivated(eventArgs) { /* Your code */ }
iCoreAcceleratorKeys.addEventListener("acceleratorkeyactivated", onAcceleratorKeyActivated);
iCoreAcceleratorKeys.removeEventListener("acceleratorkeyactivated", onAcceleratorKeyActivated);
- or -
iCoreAcceleratorKeys.onacceleratorkeyactivated = onAcceleratorKeyActivated;
Event AcceleratorKeyActivated As TypedEventHandler(Of CoreDispatcher, AcceleratorKeyEventArgs)