-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Input.ProcessKeyboardAcceleratorEventArgs.Handled |
winrt property |
Gets or sets a value that marks the event as handled.
true
to mark the event handled. false
to leave the event unhandled. The default is false
.
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.