-
Notifications
You must be signed in to change notification settings - Fork 953
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 issue with announcing ExpandedCollapsedState for ComboBox in Property grid #1987 #4059
Conversation
…erty grid dotnet#1987 Issue is reproduced due to two competing requests to the Narrator. First request moves focus on selected item in options list, second request moves focus on control itself. As a result, in half of the cases the narrator announces the selected option, and in the other half the ExpandedCollapsedState of the control. As a fix, I removed RaiseAutomationEvent and RaiseAutomationPropertyChangedEvent and replaced them on a RaiseAutomationNotification. Now, the focus always remains on the selected item and Narrator announces selected option and ExpandedCollapsedState of control.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -1774,11 +1774,10 @@ public virtual int GetValueWidth() | |||
var gridEntry = GetGridEntryFromRow(selectedRow); | |||
if (gridEntry != null) | |||
{ | |||
gridEntry.AccessibilityObject.RaiseAutomationEvent(UiaCore.UIA.AutomationFocusChangedEventId); | |||
gridEntry.AccessibilityObject.RaiseAutomationPropertyChangedEvent( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once RaiseAutomationPropertyChangedEvent is removed, does Inspect show the change of state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tanya-Solyanik , I checked that the presence or absence of a "RaiseAutomationPropertyChangedEvent" call does not affect the behavior of the Inspector
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue is reproduced due to two competing requests to the Narrator.
If competing requests are send in response to focus change, who is changing focus? Isn't focus change the root cause?
@Tanya-Solyanik , we have two calls of |
Is this the one you removed? I don't see |
It was decided not to take the fix. |
Fixes #1987
Proposed changes
Customer Impact
Due to two competing requests to the Narrator in half of the cases the narrator announces the selected option, and in the other half the ExpandedCollapsedState of the control:
![1987-issue](https://user-images.githubusercontent.com/23376742/95203022-d1e32c80-07ea-11eb-8424-67fd208aaea9.gif)
![1987-fixed](https://user-images.githubusercontent.com/23376742/95203058-e58e9300-07ea-11eb-952a-d3515fef4e12.gif)
After fixing, the focus always remains on the selected item and Narrator announces selected option and ExpandedCollapsedState of control:
Regression?
Risk
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow