Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
[Android] Fix a11y set semantic focus (#1782)
Browse files Browse the repository at this point in the history
* Add SemanticExtensions SetFocus and Announce

* Add Windows Announce implementation

* Update based on feedback

* Fix SetSemanticFocus for Android

* Revert order of usings to clean up diff

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
  • Loading branch information
4 people committed Jan 11, 2022
1 parent 4b28658 commit a4557b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static void PlatformSetSemanticFocus(this VisualElement element)
if (androidView is not AView view)
throw new NullReferenceException("Can't access view");

view.SendAccessibilityEvent(EventTypes.ViewFocused);
view.SendAccessibilityEvent((EventTypes)(int)WindowsChange.AccessibilityFocused);
}

static void PlatformAnnounce(string text)
Expand All @@ -36,4 +36,4 @@ static void PlatformAnnounce(string text)
manager.SendAccessibilityEvent(announcement);
}
}
}
}

0 comments on commit a4557b7

Please sign in to comment.