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

CommandBar keyboard navigation issue #19403

Open
MartinZikmund opened this issue Jan 31, 2025 · 0 comments
Open

CommandBar keyboard navigation issue #19403

MartinZikmund opened this issue Jan 31, 2025 · 0 comments
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@MartinZikmund
Copy link
Member

MartinZikmund commented Jan 31, 2025

Current behavior

When AppBarButton has a focus as presented in Issue 1 and Spacebar or Enter is pressed, the flyout window appears but the focus stays on File menu rather to move to Connect menu. Pressing consecutively Tab key, does not cause the focus enter into flyout menu.

Desktop:
image

WindowsAppSdk:
image

Expected behavior

No response

How to reproduce it (as minimally and precisely as possible)

<CommandBar Grid.Row="0" HorizontalAlignment="Left"
            Background="Transparent" IsOpen="False" DefaultLabelPosition="Right">
    <AppBarButton Label="File" Icon="Folder">
        <AppBarButton.Flyout>
            <MenuFlyout Placement="Bottom" >
                <MenuFlyoutItem Text="Connect" />
                <MenuFlyoutItem Text="Disconnect" />
                <MenuFlyoutSeparator />
                <MenuFlyoutItem Text="New" />
                <MenuFlyoutItem Text="Open" Icon="OpenFile" />
                <MenuFlyoutItem Text="Save" Icon="Save">
                    <MenuFlyoutItem.KeyboardAccelerators>
                        <KeyboardAccelerator Modifiers="Control" Key="S" />
                    </MenuFlyoutItem.KeyboardAccelerators>
                </MenuFlyoutItem>
            </MenuFlyout>
        </AppBarButton.Flyout>
    </AppBarButton>
    <CommandBar.SecondaryCommands>
        <AppBarButton Icon="Setting" Label="Settings">
            <AppBarButton.KeyboardAccelerators>
                <KeyboardAccelerator Modifiers="Control" Key="I" />
            </AppBarButton.KeyboardAccelerators>
        </AppBarButton>
    </CommandBar.SecondaryCommands>
</CommandBar>

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@MartinZikmund MartinZikmund added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

1 participant