CoreDispatcher.AcceleratorKeyActivated Event

Definition

Fired when an accelerator key is activated (pressed or held down).

// 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
CoreDispatcher::AcceleratorKeyActivated_revoker AcceleratorKeyActivated(auto_revoke_t, TypedEventHandler<CoreDispatcher, AcceleratorKeyEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreDispatcher,AcceleratorKeyEventArgs> AcceleratorKeyActivated;
function onAcceleratorKeyActivated(eventArgs) { /* Your code */ }
coreDispatcher.addEventListener("acceleratorkeyactivated", onAcceleratorKeyActivated);
coreDispatcher.removeEventListener("acceleratorkeyactivated", onAcceleratorKeyActivated);
- or -
coreDispatcher.onacceleratorkeyactivated = onAcceleratorKeyActivated;
Public Custom Event AcceleratorKeyActivated As TypedEventHandler(Of CoreDispatcher, AcceleratorKeyEventArgs) Implements AcceleratorKeyActivated

Event Type

TypedEventHandler<CoreDispatcher,AcceleratorKeyEventArgs>

Implements

Remarks

XAML processes CTRL+TAB or CTRL+SHIFT+TAB key presses for tab navigation, and apps do not get a chance to handle them from the AcceleratorKeyActivated event. Starting in Windows 8.1, we will allow the tab navigation processing with CTRL+TAB or ALT+TAB or SHIFT+TAB.

If you handled the AcceleratorKeyActivated event in Windows 8 to do special processing, the event will get fired for Tab keys when invoked with CTRL, ALT, or SHIFT modifiers in Windows 8.1. Verify tab navigation with CTRL+TAB or ALT+TAB or SHIFT+TAB keys.

Applies to