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

Messagebox doesn't get focus. #157

Open
Quetzalcoatl2435 opened this issue Aug 21, 2023 · 2 comments
Open

Messagebox doesn't get focus. #157

Quetzalcoatl2435 opened this issue Aug 21, 2023 · 2 comments

Comments

@Quetzalcoatl2435
Copy link

Messagebox pops up fine, but doesn't get focus. Can't use enter/esc to confirm/cancel.
The user has to tab twice first to set focus to messagebox.

With show as popup it's even worse because the focus is at the top element of the page. The user has to tab through all elements on page before getting to the popup.

@mitnick2012
Copy link

I have the same issue any suggestions for a solution?

@crh2021
Copy link

crh2021 commented Sep 2, 2024

I have the same issue.
IsDefault = true
does not work. button "OK" not get focus as expected.

    var messageBox = MessageBoxManager.GetMessageBoxCustom(new MessageBoxCustomParams
    {
        ContentTitle = "Custom Dialog",
        ContentMessage = "This is a dialog with multiple buttons.",
        ButtonDefinitions = new[]
        {
            new ButtonDefinition { Name = "OK", IsDefault = true },
            new ButtonDefinition { Name = "Cancel" },
            new ButtonDefinition { Name = "Ignore" }
        },
        WindowStartupLocation = WindowStartupLocation.CenterOwner
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants