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

Unified Diff: ios/chrome/browser/ui/history/history_panel_view_controller.mm

Issue 2718683002: Let modal view controllers become first responder when presented. (Closed)
Patch Set: 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/history/history_panel_view_controller.mm
diff --git a/ios/chrome/browser/ui/history/history_panel_view_controller.mm b/ios/chrome/browser/ui/history/history_panel_view_controller.mm
index 2989f1e96bb69f436fc2e5b13ec4c21d5a94d4a1..59ff508b5ef8e75e2988cdc608b3cf95c344ed83 100644
--- a/ios/chrome/browser/ui/history/history_panel_view_controller.mm
+++ b/ios/chrome/browser/ui/history/history_panel_view_controller.mm
@@ -409,6 +409,10 @@ CGFloat kShadowOpacity = 0.2f;
#pragma mark - UIResponder
+- (BOOL)canBecomeFirstResponder {
+ return YES;
+}
+
- (NSArray*)keyCommands {
__weak HistoryPanelViewController* weakSelf = self;
return @[ [UIKeyCommand cr_keyCommandWithInput:UIKeyInputEscape

Powered by Google App Engine
This is Rietveld 408576698