Skip to content

Commit 58d5c74

Browse files
authored
Add MSAA event to method OnGotFocus of the Control.cs (dotnet#12651)
1 parent 01cfa36 commit 58d5c74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/System.Windows.Forms/src/System/Windows/Forms/Controls/PropertyGrid/PropertyGridInternal/PropertyGridView.GridViewTextBox.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ protected override void OnGotFocus(EventArgs e)
133133
{
134134
AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId);
135135
}
136+
137+
// MSAA Event:
138+
AccessibilityNotifyClients(AccessibleEvents.Focus, childID: -1);
136139
}
137140

138141
protected override void OnKeyDown(KeyEventArgs e)

0 commit comments

Comments
 (0)