Delen via


CoreAcceleratorKeys.AcceleratorKeyActivated Event

Definition

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.

Applies to

See also