AcceleratorKeyEventArgs AcceleratorKeyEventArgs AcceleratorKeyEventArgs AcceleratorKeyEventArgs Class


Provides the arguments returned by an accelerator key event callback.

public : sealed class AcceleratorKeyEventArgs : ICoreWindowEventArgs
struct winrt::Windows::UI::Core::AcceleratorKeyEventArgs : ICoreWindowEventArgs
public sealed class AcceleratorKeyEventArgs : ICoreWindowEventArgs
Public NotInheritable Class AcceleratorKeyEventArgs Implements ICoreWindowEventArgs

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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.

Version history

Windows version SDK version Value added
1607 14393 DeviceId


DeviceId DeviceId DeviceId DeviceId

Gets a unique ID for the input device that generated this key event.

Use DeviceId to differentiate between devices that can generate key events, such as multiple Xbox controllers.

DeviceId is not supported for all input devices.

EventType EventType EventType EventType

Gets the type of the accelerator key event that invoked the callback.

Handled Handled Handled Handled

Gets or sets whether the accelerator key event was handled or not.

KeyStatus KeyStatus KeyStatus KeyStatus

Gets the status of the accelerator key for which the event was raised.

VirtualKey VirtualKey VirtualKey VirtualKey

Gets the virtual key code for the keypress in the accelerator key event.

See also