Skip to content

Commit c1aa344

Browse files
committed
Add MSAA focus event in OnGotFocus
1 parent acb2d59 commit c1aa344

File tree

1 file changed

+2
-0
lines changed
  • src/System.Windows.Forms/System/Windows/Forms/Controls/MonthCalendar

1 file changed

+2
-0
lines changed

src/System.Windows.Forms/System/Windows/Forms/Controls/MonthCalendar/MonthCalendar.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,8 @@ protected override void OnGotFocus(EventArgs e)
14281428
{
14291429
base.OnGotFocus(e);
14301430

1431+
NotifyWinEvent(AccessibleEvents.Focus);
1432+
14311433
if (IsAccessibilityObjectCreated)
14321434
{
14331435
((MonthCalendarAccessibleObject)AccessibilityObject).FocusedCell?.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId);

0 commit comments

Comments
 (0)