#4976·windows-rs

`windows-reactor`: Add MenuItem accelerator, access key, icon support

Author: riverarCreated Sep 19, 2026Updated Sep 19, 2026
Labelsenhancement

MenuItem doesn't currently expose a way to set icons, keyboard accelerators, or access keys (e.g., "x" in this case).

Would also like the ability to markup the text in such a way that communicates the access key to the user (e.g., when ALT is pressed or accessibility option enabled) as such:


┌─────────────┐
│             │
│ ...         │
│             │
│ ...         │
│             │
│ Exit to DOS │
└─────────────┘

It appears some of this may be blocked by missing upstream MUX features https://github.com/microsoft/microsoft-ui-xaml/issues/2216#:%7E:text=Show%20Alt%2Dkey%20Underlines%20Option%20(ties%20into%20MenuBarItem%20not%20having%20KeyboardAccelerators)

Sample scenario:

rust
ctx.show_menu_at(
    ...,
    Menu::new(
        [MenuItem::MenuItem::Item {
            key: "exit".into(),
            label: "Exit".to_string(),
            enabled: true,
        }],
        ...,
    ),
);