Skip to content

Remove explicit Win32 SetFocus call when opening DialogHost#4078

Draft
Keboo wants to merge 1 commit into
masterfrom
dialogHostFocus
Draft

Remove explicit Win32 SetFocus call when opening DialogHost#4078
Keboo wants to merge 1 commit into
masterfrom
dialogHostFocus

Conversation

@Keboo

@Keboo Keboo commented Jul 10, 2026

Copy link
Copy Markdown
Member

The manual call to SetFocus via HwndSource was redundant and could cause unexpected focus behavior. The subsequent logic already handles focus by finding the first focusable element within the dialog's content.

The manual call to SetFocus via HwndSource was redundant and could cause unexpected focus behavior. The subsequent logic already handles focus by finding the first focusable element within the dialog's content.
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.

1 participant