Skip to content

Bubbling of Handled Keyboard Accelerators #4532

Open
@JPTGamesAndApps

Description

@JPTGamesAndApps

At least for WinUI3, shouldn't it say that ...if marked as handled, the keyboard accelerator DOES NOT bubble (so the outside keyboard accelerator is never invoked.

The [UIElement.OnProcessKeyboardAccelerators](https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.uielement.onprocesskeyboardaccelerators) method is executed before the keyboard accelerator. This method passes a [ProcessKeyboardAcceleratorArgs](https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.input.processkeyboardacceleratoreventargs) object that contains the key, the modifier, and a Boolean indicating whether the keyboard accelerator is handled. If marked as handled, the keyboard accelerator bubbles (so the outside keyboard accelerator is never invoked).


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions