ProcessKeyboardAcceleratorEventArgs ProcessKeyboardAcceleratorEventArgs ProcessKeyboardAcceleratorEventArgs Class

Definition

Provides event data for the ProcessKeyboardAccelerators event.

public : sealed class ProcessKeyboardAcceleratorEventArgs : IProcessKeyboardAcceleratorEventArgs
public sealed class ProcessKeyboardAcceleratorEventArgs : IProcessKeyboardAcceleratorEventArgs
Public NotInheritable Class ProcessKeyboardAcceleratorEventArgs Implements IProcessKeyboardAcceleratorEventArgs
Attributes
Windows 10 requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Properties

Handled Handled Handled

Gets or sets a value that marks the event as handled.

public : Platform::Boolean Handled { get; set; }
public bool Handled { get; set; }
Public ReadWrite Property Handled As bool
Value
Platform::Boolean bool bool

true to mark the event handled. false to leave the event unhandled. The default is false.

Remarks

The keyboard accelerator event bubbles from the element that has the focus to the root Window element. If the event isn't handled, the framework looks for other accelerators outside of the bubbling path using a table of global accelerators. All accelerators are registered as global unless scoped using ScopeOwner.

Scoped accelerators are invoked only if focus is inside a specific scope. For example, in a Grid that contains many controls, the accelerator can be associated with a control scoped to the Grid (the Grid is the ScopeOwner ). In this case, the root element is the Grid.

If two accelerators are defined with the same key combination, the first accelerator found in the table is invoked.

Key Key Key

Gets the virtual key (used in conjunction with one or more modifier keys) for a keyboard shortcut (accelerator).

A keyboard shortcut is invoked when the modifier keys asssociated with the shortcut are pressed and then the non-modifier key is pressed at the same time. For example, Ctrl+C for copy and Ctrl+S for save.

public : VirtualKey Key { get; }
public VirtualKey Key { get; }
Public ReadOnly Property Key As VirtualKey
Value
VirtualKey VirtualKey VirtualKey

The virtual key.

Modifiers Modifiers Modifiers

Gets the virtual key used to modify another keypress for a keyboard shortcut (accelerator).

A keyboard shortcut is invoked when the modifier keys asssociated with the shortcut are pressed and then the non-modifier key is pressed at the same time. For example, Ctrl+C for copy and Ctrl+S for save.

public : VirtualKeyModifiers Modifiers { get; }
public VirtualKeyModifiers Modifiers { get; }
Public ReadOnly Property Modifiers As VirtualKeyModifiers