Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu key accelerators #1634

Closed
davidbritch opened this issue Aug 9, 2023 · 1 comment
Closed

Menu key accelerators #1634

davidbritch opened this issue Aug 9, 2023 · 1 comment
Assignees
Labels
🏁 Release: .NET 9 Work items for the .NET 9 release doc-enhancement Improve the current content [org] 📌 seQUESTered Identifies that an issue has been imported into Quest.

Comments

@davidbritch
Copy link
Contributor

davidbritch commented Aug 9, 2023

.NET MAUI 8 includes keyboard accelerators for menu items. Keyboard accelerators enable you to assign keyboard shortcuts to any menu item, whether visible or not, and attach them to any UI element.

<ContentPage.MenuBarItems>
    <MenuBarItem Text="File">
        <MenuFlyoutItem Text="Preferences"
            Command="{Binding PreferencesCommand}"
        />
    </MenuBarItem>
    <MenuBarItem Text="Products">
        <MenuFlyoutItem 
            x:Name="AddProductMenu"
            Text="Add Product"
            Command="{Binding AddProductCommand}"
        />
        <MenuBarItem Text="Add Product Category"/>
    </MenuBarItem>
</ContentPage.MenuBarItems>
MenuItem.SetAccelerator(AddProductMenu, Accelerator.FromString("Ctrl+A"));

dotnet/maui#14740

See dotnet/maui#16740 for the refactored API.


Associated WorkItem - 164932

@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Aug 9, 2023
@davidbritch davidbritch added doc-enhancement Improve the current content [org] 🏁 Release: .NET 9 Work items for the .NET 9 release and removed Pri3 ⌚ Not Triaged Not triaged labels Aug 9, 2023
@PureWeen
Copy link
Member

FYI dotnet/maui#16740

@davidbritch davidbritch self-assigned this Sep 26, 2023
@davidbritch davidbritch added 🗺️ reQUEST Triggers an issue to be imported into Quest. and removed Pri3 labels Sep 29, 2023
@github-actions github-actions bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Sep 30, 2023
@davidbritch davidbritch moved this from 🔖 Ready to 🏗 In progress in dotnet/docs-maui 2023 Sprints Oct 25, 2023
@davidbritch davidbritch moved this from 🏗 In progress to ✅ Done in dotnet/docs-maui 2023 Sprints Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏁 Release: .NET 9 Work items for the .NET 9 release doc-enhancement Improve the current content [org] 📌 seQUESTered Identifies that an issue has been imported into Quest.
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants