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

Fix combobox can't open dropdown when the editable textbox of it has the focus #1114

Merged
merged 2 commits into from
Mar 13, 2023

Conversation

orrindeng
Copy link
Contributor

@orrindeng orrindeng commented Mar 13, 2023

The code has detected the SelectedItem is not null, and I think it's better to detect container is not null too. Especially when the ComboBox dropdown is never open.

If the given target of the Keyboard.Focus method is null, the keyboard will focus to the RootVisual like MainWindow. It causes the keyboard focus changes if the keyboard has been already focused on it. But in .NET WPF code, when the IsKeyboardFocusWithin changed, it may cause the dropdown closed immediately.

image

@batzen batzen merged commit d8516fe into fluentribbon:develop Mar 13, 2023
@batzen
Copy link
Member

batzen commented Mar 13, 2023

Thanks for contributing!

batzen added a commit that referenced this pull request Mar 13, 2023
@orrindeng orrindeng deleted the pr230313 branch March 14, 2023 00:58
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

2 participants