Skip to content

Commit

Permalink
[Dialogs] Dismiss the dialog when we recive the Z A11y gesture
Browse files Browse the repository at this point in the history
Summary:
Mirror of internal fix:
cl/132431383

Reviewers: samnm, randallli, O1 Material components iOS

Reviewed By: randallli, O1 Material components iOS

Subscribers: randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1571
  • Loading branch information
Felix Emiliano authored and Ian Gordon committed Sep 7, 2016
1 parent ad8986d commit f2f95d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/Dialogs/src/MDCAlertController.m
Expand Up @@ -478,4 +478,11 @@ - (CGSize)actionButtonsSizeInVericalLayout {
return size;
}

#pragma mark - UIAccessibilityAction

- (BOOL)accessibilityPerformEscape {
[self.presentingViewController dismissViewControllerAnimated:YES completion:NULL];
return YES;
}

@end

0 comments on commit f2f95d6

Please sign in to comment.