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

Set focus to ContentDialogWithNonInteractiveContent on launch. #2931

Merged
merged 5 commits into from
May 20, 2024

Conversation

dhoehna
Copy link
Contributor

@dhoehna dhoehna commented May 15, 2024

Summary of the pull request

The ContentDialogWithNonInteractiveContent is set up on the UI thread. This is causing a race-condition and the result is focus is not moved to the dialog.

I set the focus manually. Works with mouse and keyboard.

References and relevant issues

https://task.ms/50382877

Detailed description of the pull request / Additional comments

Validation steps performed

Went to Hyper-V page and launched the content dialogs with the keyboard.

PR checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated

@dhoehna dhoehna added the Do-Not-Merge Don't merge this in yet label May 15, 2024
@dhoehna dhoehna requested a review from a team May 15, 2024 21:16
@dhoehna dhoehna removed the Do-Not-Merge Don't merge this in yet label May 17, 2024
@dhoehna dhoehna changed the title Adding a tiny delay to ContentDialogWithNonInteractiveContent Set focus to ContentDialogWithNonInteractiveContent on launch. May 17, 2024
@dhoehna dhoehna merged commit 5ea72ad into main May 20, 2024
4 checks passed
@krschau krschau added this to the Dev Home 0.15 milestone May 20, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants