CoreAcceleratorKeys CoreAcceleratorKeys CoreAcceleratorKeys CoreAcceleratorKeys Class

Definition

Provides the basic behavior for an accelerator key.

public : sealed class CoreAcceleratorKeys : ICoreAcceleratorKeys
struct winrt::Windows::UI::Core::CoreAcceleratorKeys : ICoreAcceleratorKeys
public sealed class CoreAcceleratorKeys : ICoreAcceleratorKeys
Public NotInheritable Class CoreAcceleratorKeys Implements ICoreAcceleratorKeys
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Events

AcceleratorKeyActivated AcceleratorKeyActivated AcceleratorKeyActivated AcceleratorKeyActivated

Fired when an accelerator key is pressed or activated.

public : event TypedEventHandler AcceleratorKeyActivated<CoreDispatcher, AcceleratorKeyEventArgs>
// Register
event_token AcceleratorKeyActivated(TypedEventHandler<CoreDispatcher, AcceleratorKeyEventArgs> const& handler) const;

// Revoke with event_token
void AcceleratorKeyActivated(event_token const& cookie) const;

// Revoke with event_revoker
AcceleratorKeyActivated_revoker AcceleratorKeyActivated(auto_revoker_t, TypedEventHandler<CoreDispatcher, AcceleratorKeyEventArgs> const& handler) const;
public event TypedEventHandler AcceleratorKeyActivated<CoreDispatcher, AcceleratorKeyEventArgs>
Public Event TypedEventHandler AcceleratorKeyActivated( Of ( Of CoreDispatcher ), ( Of AcceleratorKeyEventArgs ))

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.