ProcessKeyboardAcceleratorEventArgs
ProcessKeyboardAcceleratorEventArgs
ProcessKeyboardAcceleratorEventArgs
ProcessKeyboardAcceleratorEventArgs
Class
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
Provides event data for the ProcessKeyboardAccelerators event.
public : sealed class ProcessKeyboardAcceleratorEventArgs : IProcessKeyboardAcceleratorEventArgspublic sealed class ProcessKeyboardAcceleratorEventArgs : IProcessKeyboardAcceleratorEventArgsPublic NotInheritable Class ProcessKeyboardAcceleratorEventArgs Implements IProcessKeyboardAcceleratorEventArgs// This API is not available in Javascript.
- Attributes
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
Properties
Handled Handled Handled Handled
Prerelease. 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// This API is not available in Javascript.
- Value
- PlatForm::Boolean bool 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 Key
Prerelease. 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// This API is not available in Javascript.
The virtual key.
Modifiers Modifiers Modifiers Modifiers
Prerelease. 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// This API is not available in Javascript.
The virtual key.