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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm

Issue 2355703004: profile switcher: allow numpad enter for button activations (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
index 4328c61571a8ba67167034001c5fca02a6fa03b7..2ce435077044de7c80f1f740283125e23ac262d9 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -887,7 +887,7 @@ -(void)keyDown:(NSEvent*)event {
// Since there is no default button in the bubble, it is safe to activate
// all buttons on Enter as well, and be consistent with the Windows
// implementation.
- if ([event keyCode] == kVK_Return)
+ if ([event keyCode] == kVK_Return || [event keyCode] == kVK_ANSI_KeypadEnter)
[self performClick:self];
else
[super keyDown:event];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698