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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_controller.mm

Issue 2743993003: cocoa: add experimental tabstrip keyboard focus support (Closed)
Patch Set: fix histogram Created 3 years, 9 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 | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/cocoa/tabs/tab_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/tabs/tab_controller.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_controller.mm
index 240d109a1015dbd751eaa87b74e9ce2841d969b1..ec6ca25d6c22845873572183cee2b2988a75ac54 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_controller.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_controller.mm
@@ -490,4 +490,10 @@ - (void)maybeStartDrag:(NSEvent*)event forTab:(TabController*)tab {
[[target_ dragController] maybeStartDrag:event forTab:tab];
}
+- (void)keyUp:(NSEvent*)event {
+ unichar keyChar = [[event characters] characterAtIndex:0];
+ if (keyChar == '\r' || keyChar == '\n')
+ [self selectTab:self];
+}
+
@end
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/cocoa/tabs/tab_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698