Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: ios/chrome/browser/ui/settings/settings_navigation_controller.mm

Issue 2713173002: Don't dismiss Settings when another view controller is presented on top (Closed)
Patch Set: Format gn file Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/settings/settings_navigation_controller.mm
diff --git a/ios/chrome/browser/ui/settings/settings_navigation_controller.mm b/ios/chrome/browser/ui/settings/settings_navigation_controller.mm
index b1b25e508dcf0a11631a3e674e27d17e7a4e78c3..035118eae4e36ea24f3b26d5bfbb960d399a6520 100644
--- a/ios/chrome/browser/ui/settings/settings_navigation_controller.mm
+++ b/ios/chrome/browser/ui/settings/settings_navigation_controller.mm
@@ -542,6 +542,9 @@ initWithRootViewController:(UIViewController*)rootViewController
#pragma mark - UIResponder
- (NSArray*)keyCommands {
+ if ([self presentedViewController]) {
+ return nil;
+ }
base::WeakNSObject<SettingsNavigationController> weakSelf(self);
return @[
[UIKeyCommand cr_keyCommandWithInput:UIKeyInputEscape

Powered by Google App Engine
This is Rietveld 408576698