VoiceOver: RoomVC: Make VoiceOver focus on the contextual menu when selecting an event

#2721
This commit is contained in:
manuroe
2019-09-18 13:51:45 +02:00
parent a1b47f3436
commit 0c2082ce2f
3 changed files with 22 additions and 7 deletions
@@ -117,11 +117,15 @@ final class RoomContextualMenuViewController: UIViewController, Themable {
func showMenuToolbar() {
self.menuToolbarViewBottomConstraint.constant = 0
self.menuToolbarView.alpha = 1
// Force VoiceOver to focus on the menu bar actions
UIAccessibility.post(notification: .screenChanged, argument: self.menuToolbarView)
}
func hideMenuToolbar() {
self.menuToolbarViewBottomConstraint.constant = self.hiddenToolbarViewBottomConstant
self.menuToolbarView.alpha = 0
UIAccessibility.post(notification: .screenChanged, argument: nil)
}
func prepareReactionsMenuAnimations() {